-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
106 lines (89 loc) · 2.36 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<style>
body,
html {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
.white {
color: white;
}
.blue {
color: blue;
}
.red {
color: red;
}
.green {
color: green;
}
.orange {
color: orange;
}
body {
background: black;
font-family: verdana;
font-size: 12px;
}
.main {
width: 1024px;
margin: 0 auto;
}
.main h1 {
font-size: 26px;
color: white;
text-align: center;
}
.main .canvas-wrapper {
position: relative;
}
.main .canvas-wrapper canvas {
width: 100%;
height: 650px;
border: 1px solid white;
}
.main .canvas-wrapper .log {
position: absolute;
background: transparent;
width: 360px;
height: 100px;
bottom: 3px;
left: 0;
padding: 5px;
overflow: hidden;
}
.main .canvas-wrapper .log .message {
display: block;
clear: both;
padding: 2px 0;
}
</style>
</head>
<body>
<div id="main" class="main">
<h1>Block Multiplayer</h1>
<div class="canvas-wrapper">
<canvas id="game-canvas" width="1024" height="650">Your browser does not support the canvas element.</canvas>
<div id="log" class="log"></div>
</div>
</div>
<script src="build/client/bundle.js"></script>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-29150013-7', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>