-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·72 lines (62 loc) · 1.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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Minesweeper</title>
<script type='text/javascript' >
var myFunctionTag = false;
var projMat = null;
var viewMat = null;
</script>
<script src="webgl-debug.js"></script>
<style type="text/css">
* { margin:0; padding:0; } /* to remove the top and left whitespace */
html, body { width:100%; height:100%; } /* just to be sure these are full screen*/
canvas { display:block; } /* To remove the scrollbars */
#statusline{
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
height: 48px;
background: rgba(0, 0, 0, 0.5);
color: white;
font-family: sans-serif;
font-size: 18px;
padding: 10px;
padding-top: 12px;
box-sizing: border-box;
}
.help{
opacity: 0.7;
}
.key{
display:inline-block;
border-radius: 2px;
border: 1px solid white;
width:24px;
height:24px;
box-sizing: border-box;
font-size: 18px;
text-transform: uppercase;
text-align: center;
}
</style>
<script type="text/javascript" src="three.js"></script>
<script type="text/javascript" src="./lib/spidergl.js"></script>
<script type="text/javascript" src="./lib/spidergl-config.js"></script>
<script type="text/javascript" src="primitives.js"></script>
<script type="text/javascript" src="compute_normals.js"></script>
<script type="text/javascript" src="shaders.js"></script>
<script type="text/javascript" src="renderingprimitives.js"></script>
<script type="text/javascript" src="minesweeper.js"></script>
<script type="text/javascript" src="main.js"></script>
</head>
<body onload="start()">
<div id="statusline">
<b>h</b>, <b>j</b>, <b>k</b>, <b>l</b>: move / <b>s</b>: dig / <b>d</b>: flag
</div>
<canvas id="canvas" >
If you are seeing this message your web browser does not support the HTML5 <canvas>> element.
</canvas>
</html>