diff options
author | Rory& <root@rory.gay> | 2024-04-06 04:06:58 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-04-06 04:06:58 +0200 |
commit | 74f551ef1314481e3aa8c20fedb48033255617b9 (patch) | |
tree | c515a7b6f2511320a4d1b23a1eef963f9707c539 /BugMine.Web/wwwroot/index.html | |
download | BugMine-74f551ef1314481e3aa8c20fedb48033255617b9.tar.xz |
Initial commit
Diffstat (limited to 'BugMine.Web/wwwroot/index.html')
-rw-r--r-- | BugMine.Web/wwwroot/index.html | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/BugMine.Web/wwwroot/index.html b/BugMine.Web/wwwroot/index.html new file mode 100644 index 0000000..d391608 --- /dev/null +++ b/BugMine.Web/wwwroot/index.html @@ -0,0 +1,64 @@ +<!DOCTYPE html> +<html lang="en" data-bs-theme="dark"> + + <head> + <meta charset="utf-8"/> + <meta name="viewport" content="width=device-width, initial-scale=1.0"/> + <title>BugMine.Web</title> + <base href="/"/> + <link rel="stylesheet" href="css/bootstrap/bootstrap.min.css"/> + <link rel="stylesheet" href="css/app.css"/> + <link rel="manifest" href="bugmine.webmanifest"/> + <link rel="icon" type="image/png" href="favicon.png"/> + <link href="BugMine.Web.styles.css" rel="stylesheet"/> + </head> + + <body> + <div id="app"> + <svg class="loading-progress"> + <circle cx="50%" cy="50%" r="40%"/> + <circle cx="50%" cy="50%" r="40%"/> + </svg> + <div class="loading-progress-text"></div> + </div> + + <div id="blazor-error-ui"> + An unhandled error has occurred. + <a class="reload" href="">Reload</a> + <a class="dismiss">🗙</a> + </div> + <script> + function BlazorFocusElement(element) { + if (element == null) return; + if (element instanceof HTMLElement) { + console.log(element); + element.focus(); + } else if (element.hasOwnProperty("__internalId")) { + console.log("Element is not an HTMLElement", element); + } + } + + function getWidth(element) { + console.log("getWidth", element); + if (element == null) return 0; + if (element instanceof HTMLElement) { + return element.offsetWidth + } else if (element.hasOwnProperty("__internalId")) { + console.log("Element is not an HTMLElement", element); + return 0; + } + return 0; + } + + function getWindowDimensions() { + return { + width: window.innerWidth, + height: window.innerHeight + }; + } + </script> + <script src="_framework/blazor.webassembly.js"></script> + <script src="sw-registrator.js"></script> + </body> + +</html> |