-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
64 lines (57 loc) · 1.41 KB
/
index.html
File metadata and controls
64 lines (57 loc) · 1.41 KB
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
<!DOCTYPE html>
<meta name="viewport" content="width=device-width, height=640">
<html>
<head>
<title>Canvas</title>
<style>
html,
body {
touch-action: none;
height: 100%;
width: 100%;
margin: 0;
padding: 0;
overflow: hidden;
background-color: black;
}
#myCanvas {
position: absolute;
top: 0px;
left: 0px;
z-index: 13;
/* border: 1px solid red; */
width: 100%;
height: 100%;
}
#canvases {
width: 3200px;
height: 3200px;
}
#controlcanvas {
display: none;
position: absolute;
top: 0;
left: 0;
width: 100px;
height: 100px;
border: 1px solid black;
border-radius: 25%;
background-color: rgba(128, 128, 128, 0.5);
z-index: 15;
}
#speedrange {
position: fixed;
top: 10px;
left: 40%;
z-index: 2000;
}
</style>
</head>
<script src="index.js" type="module"></script>
<body>
<input id="speedrange" name="speedrange" value="0" min="0" max="100" type="range"></input>
<canvas id="myCanvas"></canvas>
<canvas id="controlcanvas"></canvas>
<div id="canvases"></div>
</body>
</html>