<!DOCTYPE html>
|
<html lang="en">
|
<head>
|
<meta charset="utf-8">
|
<meta name="viewport"
|
content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-title" content="furnview">
|
<title i18n="furnview-app-title">furnview</title>
|
|
<script>
|
if ('serviceWorker' in navigator) {
|
navigator.serviceWorker.getRegistrations().then(function (registrations) {
|
for (let registration of registrations) {
|
registration.addEventListener('updatefound', () => {
|
if (registration.installing) {
|
registration.installing.addEventListener('statechange', () => {
|
if (registration.waiting) {
|
if (navigator.serviceWorker.controller) {
|
registration.waiting.postMessage('SKIP_WAITING');
|
} else {
|
console.log('Service Worker initialized for the first time')
|
}
|
}
|
})
|
}
|
if (registration.waiting) {
|
if (navigator.serviceWorker.controller) {
|
registration.waiting.postMessage('SKIP_WAITING');
|
} else {
|
console.log('Service Worker initialized for the first time')
|
}
|
}
|
});
|
registration.update();
|
}
|
navigator.serviceWorker.register('tokenWorker.js').then((registration) => {
|
registration.update();
|
}).catch((err) => {
|
console.log('ServiceWorker registration failed: ', err);
|
});
|
});
|
}
|
</script>
|
</head>
|
<body class="construction-container initialHide">
|
<script type="application/javascript">
|
let tokenizeFiles = ["/webui-content/:token/style/font.css","/webui-content/:token/style/custom.css","/webui-content/:token/t/baukasten/fv.DeOhu3H1.js","/webui-content/:token/t/baukasten/vendor/dh.chunk.js","/webui-content/:token/t/baukasten/vendor/vendor.chunk.js","/webui-content/:token/t/baukasten/vendor/wui.chunk.js","/webui-content/:token/t/baukasten/fv.D0mU4q6Z.css"];
|
window.addEventListener("DOMContentLoaded", () => {
|
const url = new URL(window.location.href);
|
window["token"] = url.searchParams.get("token");
|
window.resourceBaseURL = `/webui-content/${window["token"]}/t/baukasten/`;
|
if (window["token"]) {
|
const cssLoadPromises = [];
|
tokenizeFiles.forEach((file) => {
|
if (file.endsWith(".js")) {
|
const script = document.createElement("script");
|
script.src = file.replace(":token", window["token"]);
|
script.type = "module";
|
document.head.appendChild(script);
|
}
|
else if (file.endsWith(".css")) {
|
const link = document.createElement("link");
|
link.href = file.replace(":token", window["token"]);
|
link.rel = "stylesheet";
|
cssLoadPromises.push(new Promise((resolve) => {
|
link.addEventListener("load", resolve, { once: true });
|
link.addEventListener("error", resolve, { once: true });
|
}));
|
document.head.appendChild(link);
|
}
|
});
|
if (document.fonts) {
|
Promise.all(cssLoadPromises).then(() => {
|
document.fonts.forEach((fontFace) => {
|
fontFace.load().catch(() => {});
|
});
|
});
|
}
|
}
|
});
|
</script>
|
</body>
|
</html>
|