| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- <!DOCTYPE html>
- <html lang="de-ch">
-
- <head>
- <title>Caritas PWA</title>
- <base href="/" />
- <meta charset="utf-8" />
- <meta name="description" content="Caritas PWA, developed by INTEGRATE AG, Switzerland">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes" />
- <meta name="apple-mobile-web-app-status-bar" content="#db001b">
- <meta name="theme-color" content="#db001b">
- <script src="_content/BlazorAnimate/blazorAnimateInterop.js"></script>
- <script src="_content/MatBlazor/dist/matBlazor.js"></script>
- <link href="_content/MatBlazor/dist/matBlazor.css" rel="stylesheet" />
- <link href="css/united/bootstrap.min.css" rel="stylesheet" />
- <link href="css/united/_bootswatch.min.css" rel="stylesheet" />
- <link href="css/united/_variables.min.css" rel="stylesheet" />
- <link href="css/app.css" rel="stylesheet" />
- <link href="manifest.json" rel="manifest" />
- <link rel="apple-touch-icon" href="icons/icon-60@3x.png" />
- <link href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" rel="stylesheet"
- integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
- crossorigin="" />
- </head>
-
- <body>
-
- <app>Loading...</app>
-
- <div id="blazor-error-ui">
- An unhandled error has occurred.
- <a href="" class="reload">Reload</a>
- <a class="dismiss">🗙</a>
- </div>
- <script src="_framework/blazor.webassembly.js"></script>
- <script src="_content/TG.Blazor.IndexedDB/indexedDb.Blazor.js"></script>
- <script>
- if ('serviceWorker' in navigator) {
- navigator.serviceWorker.register('service-worker.js')
- .then((reg) => console.log('Service worker registered.', reg))
- .catch((err) => console.log('Failed to register Service worker.', err));
- }
- </script>
- <script>
- function BlazorSetLocalStorage(key, value) {
- localStorage.setItem(key, value);
- }
-
- function BlazorGetLocalStorage(key) {
- return localStorage.getItem(key);
- }
-
- function BlazorRegisterStorageEvent(component) {
- window.addEventListener("storage", async e => {
- await component.invokeMethodAsync("OnStorageUpdated", e.key);
- });
- }
-
- function registerOnlineStatusHandler(dotNetObjRef) {
- function onlineStatusHandler() {
- dotNetObjRef.invokeMethodAsync("SetOnlineStatus", navigator.onLine);
- };
- onlineStatusHandler();
- window.addEventListener("online", onlineStatusHandler);
- window.addEventListener("offline", onlineStatusHandler);
- }
-
- function RemoveScrollLock(dotNetObjRef) {
- document.querySelector("body.mdc-dialog-scroll-lock")?.classList.remove("mdc-dialog-scroll-lock");
- }
-
- function MoveCursorToNextInput(dotNetObjRef, key) {
- if (key == "Enter" || key == "ArrowRight") {
- var activeElement = document.activeElement;
- var inputs = getKeyboardFocusableElements();
- var arr = Array.prototype.slice.call(inputs)
- var index = arr.indexOf(activeElement);
- if (index + 1 < arr.length && CanNavigateForward(activeElement, key)) {
- activeElement.dispatchEvent(new Event('focusout'));
- setTimeout(function () { arr[index + 1].focus(); }, 50);
- if (arr[index + 1].localName.includes('input') || arr[index + 1].localName.includes('textarea')) {
- setTimeout(function () { arr[index + 1].select(); }, 50);
- }
- }
- }
- }
-
- function MoveCursorToPreviousInput(dotNetObjRef) {
- var activeElement = document.activeElement;
- var inputs = getKeyboardFocusableElements();
- var arr = Array.prototype.slice.call(inputs)
- var index = arr.indexOf(activeElement);
- if (index - 1 >= 0 && CanNavigateBack(activeElement)) {
- activeElement.dispatchEvent(new Event('focusout'));
- setTimeout(function () { arr[index + 1].focus(); }, 50);
- if (arr[index - 1].localName.includes('input') || arr[index - 1].localName.includes('textarea')) {
- setTimeout(function () { arr[index - 1].select(); }, 50);
- }
- }
- }
-
- function DispatchKeyboardEvent(dotNetObjRef, key) {
- window.dispatchEvent(new KeyboardEvent('keydown', { 'key': key }));
- }
-
- function getKeyboardFocusableElements(element = document) {
- return [...element.querySelectorAll('input:not([disabled]), textarea:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')]
- .filter(el => el.localName !='li' && !el.getAttribute("aria-hidden"))
- }
-
- function CanNavigateForward(element, key) {
- if (element.getAttribute('class').includes('select') || element.getAttribute('class').includes('button')) {
- if (key == "Enter") {
- return false;
- }
- return true;
- } else {
- return key == "Enter" || element.selectionStart == element.value.length
- || (element.selectionStart == 0 && element.selectionEnd == element.value.length);
- }
- }
-
- function CanNavigateBack(element) {
- if (element.getAttribute('class').includes('select') || element.getAttribute('class').includes('button')) {
- return true;
- } else {
- return element.selectionStart == null ||element.selectionStart == 0;
- }
- }
- </script>
-
- <script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"
- integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
- crossorigin="">
- </script>
-
- </body>
-
-
- </html>
-
-
|