-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (43 loc) · 1.07 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
<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>bouncy ball page</title>
<style type="text/css">
html, body {
margin: 0px;
padding: 0px;
background-color: black;
color: white;
font-family: sans-serif;
font-size: 12px;
}
canvas {
background-color: white;
//cursor: url('Transparent.gif'), auto;
}
#canvasContainer {
width: 800px;
position: relative;
margin: auto;
margin-top: 20px;
}
#controls {
position: absolute;
top: 0px;
right: 0px;
}
</style>
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<div id="controls">
<!--<input id="x"/><input id="y"/>-->
<button onclick="startStop()">pause</button>
</div>
<div id="canvasContainer">
<!--<canvas id="canvas" width="480" height="320"></canvas>-->
<canvas id="canvas" width="800" height="600"></canvas>
<div>1 - explosion 2 - vacuum 3 - black hole 4 - sticky spot</div>
<div>(A mouse click is the same as pressing the 1 key)</div>
</div>
</body>
</html>