-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
76 lines (76 loc) · 3.98 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- https://www.favicon-generator.org/ -->
<link rel="apple-touch-icon" sizes="57x57" href="./src/img/icons/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="./src/img/icons/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="./src/img/icons/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="./src/img/icons/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="./src/img/icons/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="./src/img/icons/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="./src/img/icons/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="./src/img/icons/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="./src/img/icons/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="./src/img/icons/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="./src/img/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="./src/img/icons/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="./src/img/icons/favicon-16x16.png">
<link rel="manifest" href="./manifest.json">
<link href=./src/css/variables.css rel=stylesheet type="text/css">
<script async="" src="./src/es/Environment.js"></script>
<meta name="msapplication-TileColor" content="#000f33">
<meta name="msapplication-TileImage" content="./src/img/icons/ms-icon-144x144.png">
<meta name="theme-color" content="#fff8e0ff">
<title>Decentral Ninja</title>
</head>
<body>
<c-fetch-html>
<c-fetch-css>
<c-fetch-modules>
<c-storage>
<c-router resume mode="search" routes="[
{
'name': 'p-index',
'path': '../../components/pages/Index.js',
'regExp': ['/[#=]{1}\/$/', '/^\/$/'],
'title': 'Decentral Ninja'
},
{
'name': 'p-chat',
'path': '../../components/pages/Chat.js',
'regExp': ['/[#=]{1}\/chat/'],
'createNew': 'room'
}
]">
<div class="custom-loader"></div>
</c-router>
</c-storage>
</c-fetch-modules>
</c-fetch-css>
</c-fetch-html>
<script rel=preload type=module>
Promise.all([
import('./src/es/event-driven-web-components-prototypes/src/FetchHtml.js').then(module => ['c-fetch-html', module.default]),
import('./src/es/event-driven-web-components-prototypes/src/FetchCss.js').then(module => ['c-fetch-css', module.default]),
import('./src/es/event-driven-web-components-prototypes/src/FetchModules.js').then(module => ['c-fetch-modules', module.default]),
import('./src/es/event-driven-web-components-prototypes/src/controllers/Storage.js').then(module => ['c-storage', module.default]),
import('./src/es/event-driven-web-components-router/src/Router.js').then(module => ['c-router', module.default])
]).then(elements => elements.forEach(element => {
// don't define already existing customElements
if (element && !customElements.get(element[0])) customElements.define(...element)
}))
// Iphone rotation zoom issue
// http://www.menucool.com/McMenu/prevent-page-content-zooming-on-mobile-orientation-change
if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent) && window.addEventListener && document.querySelector) self.addEventListener('orientationchange', event => {
const viewport = document.querySelector('meta[name=viewport]')
if (viewport) {
var content = viewport.getAttribute('content')
viewport.setAttribute('content', content + ', maximum-scale=1.0')
setTimeout(() => viewport.setAttribute('content', content), 90)
}
}, false);
</script>
</body>
</html>