|
- <!DOCTYPE html>
- <html>
- <!--v=3-->
- <head>
-
- <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
- <meta http-equiv="Pragma" content="no-cache" />
- <meta http-equiv="Expires" content="0" />
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
- <title>SensorFarm Admin</title>
- <base href="/" />
- <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
- <link href="css/app.css" rel="stylesheet" />
- <link href="Panel.styles.css" rel="stylesheet" />
- <link href="manifest.json" rel="manifest" />
- <link rel="apple-touch-icon" sizes="512x512" href="icon-512.png" />
- <link rel="apple-touch-icon" sizes="192x192" href="icon-192.png" />
- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
- <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css" rel="stylesheet" />
- </head>
-
- <body>
- <div id="spinnerDiv" style="display:none;">
- <div class="spinner spinner-border text-warning" role="status">
- <span class="visually-hidden">Loading...</span>
- </div>
-
- <style>
- #spinnerDiv {
- width: 100vw;
- height: 100vh;
- position: absolute;
- left: 0;
- top: 0;
- opacity: 0.2;
- background-color: black;
- z-index: 100000;
- }
-
- .spinner {
- position: absolute;
- left: calc(50% - 30px);
- top: calc(50% - 30px);
- width: 50px;
- height: 50px;
- margin: 0px auto;
- }
- </style>
- </div>
-
- <div id="app">
- <div class="splash">
- <div class="spinner-border text-warning"></div>
- </div>
- </div>
-
- <div id="blazor-error-ui">
- unhandled Error!
- <button class="btn btn-primary" onclick="return RefreshPage();" class="btn btn-bordered">Refresh</button>
- </div>
- <script src="_framework/blazor.webassembly.js?v=3"></script>
- <script>navigator.serviceWorker.register('service-worker.js?v=3');</script>
- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.0.1/chart.umd.js" integrity="sha512-gQhCDsnnnUfaRzD8k1L5llCCV6O9HN09zClIzzeJ8OJ9MpGmIlCxm+pdCkqTwqJ4JcjbojFr79rl2F1mzcoLMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <!-- Add chart.js reference if Chart components are used in the application. -->
- <script src="_content/Blazor.Bootstrap/blazor.bootstrap.js"></script>
- <script src="_content/CurrieTechnologies.Razor.SweetAlert2/sweetAlert2.min.js"></script>
- <script src="/js/jquery-2.2.4.js" type="text/javascript"></script>
- <script src="/js/datepicker.min.js" type="text/javascript"></script>
-
- <script>
- function RefreshPage() {
- document.getElementById("blazor-error-ui").style.display = "none";
- if (window.history.length > 0)
- history.back();
- }
- window.AbrMethods = {
- getInputValue: function (id) {
- return document.getElementById(id).value;
- }
- }
- window.methods = {
- ShowLoading: function () {
- document.getElementById("spinnerDiv").style.display = "block";
- },
- HideLoading: function () {
- document.getElementById("spinnerDiv").style.display = "none";
- },
- getDimensions: function () {
- return {
- width: document.body.clientWidth,
- height: document.body.clientHeight
- };
- },
- CopyInputValue: function (inputId) {
- /* Get the text field */
- var copyText = document.getElementById(inputId);
-
- /* Select the text field */
- copyText.select();
- copyText.setSelectionRange(0, 99999); /* For mobile devices */
-
- /* Copy the text inside the text field */
- document.execCommand("copy");
-
- },
- blazorOpen: function (args) {
- window.open(args);
- },
- ScrollToEnd: function () {
- window.scrollTo(0, document.body.scrollHeight);
- },
- PrepareResponsiveTable: function (inputId) {
- jQuery('table').each(function () {
- var $table = jQuery(this);
- var tableCols = $table.find('th').length;
- $table.find('tbody > tr').each(function (index, tr) {
- if (!$(tr).hasClass('extra'))
- for (var i = 1; i <= tableCols; i++) {
- var header = $table.find("thead > tr th:nth-child(" + i + ")").html();
- if (header)
- header += ": ";
- $("td:nth-child(" + i + ")", tr).attr('data-content', header);
- }
- });
- });
-
- },
- triggerFileDownload: function (fileName, url) {
- const anchorElement = document.createElement('a');
- anchorElement.href = url;
- anchorElement.download = fileName ?? '';
- anchorElement.click();
- anchorElement.remove();
- }
- };
-
- </script>
- </body>
-
- </html>
|