-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (38 loc) · 1.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width"/>
<title>Web Atoms - </title>
<script src="/node_modules/@web-atoms/module-loader/umd.js"></script>
<style>
html, body {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<script src="/.vscode/.waSetup.js"></script>
<script>
(function() {
if (window.VisualViewport.width < 900 || (window.visualViewport.height > window.visualViewport.width)) {
window.forceMobileLayout = true;
}
const url = new URL(location.href);
if(url.searchParams.get("mode") === "mobile") {
window.forceMobileLayout = true;
}
})();
(function () {
UMD.setupRoot("@web-atoms-samples/binding","");
UMD.map("@web-atoms-samples/binding", "");
UMD.lang = "en-US";
UMD.loadView("@web-atoms-samples/binding/dist/AppIndex", false)
.catch((error) => {
console.error(error);
setTimeout(() => location.reload(), 1000);
});
})();
</script>
</body>
</html>