forked from digital-codes/bike-vis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app4.html
54 lines (50 loc) · 1.21 KB
/
app4.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
<!doctype html>
<html>
<head>
<meta charset='UTF-8' />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Trips example</title>
<style>
#deck {
position:relative;
}
#cv {
/* default settings for w and h, needed? */
/*
width: 600px;
height: 300px;
*/
border: 1px solid slategray;
overflow: hidden;
}
#restart {
border: 1px solid #f00;
padding: 3px;
}
</style>
</head>
<body>
<div id="ui" class="slidecontainer">
<p>Width</p>
<input id="setw" type="range" min="100" max="1000" value="600">
<p>Height</p>
<input id="seth" type="range" min="50" max="500" value="300">
<p>Speed</p>
<input id="sets" type="range" min="10" max="500" value="10">
<div>
<input id="sett" type="range" min="1" max="10000" value="0"><span id="tv">1</span>
<button id="restart">Restart</button>
</div>
<p id="tm">123</p>
</div>
<!--
we can scale the container to adjust canvas size
transform: scale(.4);
transform-origin: left;
-->
<div id="deck">
<canvas id="cv">
</canvas>
</div>
</body>
</html>