-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (32 loc) · 1.26 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
<!DOCTYPE html>
<html>
<head>
<meta name="twitter:card" content="player" />
<meta name="twitter:site" content="@minimo" />
<meta name="twitter:title" content="Quest for the Tanelorn" />
<meta name="twitter:description" content="Action game." />
<meta name="twitter:image" content="https://minimo.github.io/QuestForTanelorn/screenshot1.png" />
<meta name="twitter:player" content="https://minimo.github.io/QuestForTanelorn/" />
<meta name="twitter:player:width" content="640" />
<meta name="twitter:player:height" content="480" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>Quest for the Tanelorn</title>
<script src='./libs/phina.js'></script>
<script src='./build/qft.js'></script>
<script>
//service-worker
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('sw.js')
.then(e => console.log('Service worker registered!', e))
.catch( e => console.log('Service worker rejected!', e))
});
}
</script>
</head>
<body>
<canvas id='world'></canvas>
</body>
</html>