forked from id-Software/DOOM
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtemplate.html
71 lines (67 loc) · 1.52 KB
/
template.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
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<title>doom-crt</title>
<meta name="apple-mobile-web-app-title" content="doom-crt">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<style type="text/css">
html, body, #a {
margin: 0;
padding: 0;
background:black;
color:white;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
#a {
width:100vw;
height:75vw;
max-height:100vh;
max-width:133.33vh;
margin: auto;
position: absolute;
top:0;bottom:0;
left:0;right:0;
}
#wa_canvas {
display:block;
outline:0;
margin:0 auto;
width:1440px;
height:1080px;
max-width:100%;
max-height:100%;
}
#wa_log {
position: absolute;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
top: 0;
bottom: 0;
margin-top: auto;
margin-bottom: auto;
width: 300px;
height: 200px;
font-size: 1.5em;
font-weight: bold;
text-align: center;
}
</style></head>
<body>
<div id="a">
<canvas id="wa_canvas" onclick="window.focus();" oncontextmenu="event.preventDefault()"></canvas>
<div id="wa_log">Loading...</div>
</div>
<script>
var WA = { canvas: document.getElementById('wa_canvas'), started: function() { document.getElementById('wa_log').style.display = 'none'; window.focus();}, };
{{{js}}}
</script>
</body>
</html>