-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
83 lines (73 loc) · 1.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
html,
body {
height: 100vh;
width: 100vw;
margin: 0;
padding: 0;
}
body {
display: flex;
align-items: center;
justify-content: center;
background-color: black;
}
.bar {
position: absolute;
flex-direction: row;
display: flex;
bottom: 0;
left: 0;
right: 0;
background-color: #333;
color: white;
font-family: Arial, Helvetica, sans-serif;
padding: 10px;
border-radius: 20px 20px 0 0;
opacity: 0.5;
justify-content: space-evenly;
}
.bar:hover {
opacity: 1;
}
.input-group {
display: flex;
flex-grow: 1;
flex-direction: column;
align-items: center;
margin: 10px;
}
.input-group>input {
width: 100%;
}
</style>
</head>
<body>
<canvas id="canvas">
</canvas>
<div class="bar">
<div class="input-group">
<label for="zoom-slider">Zoom</label>
<input type="range" name="zoom" id="zoom-slider" min="0" max="1000" value="0">
<div id="zoom-value">0%</div>
</div>
<div class="input-group">
<label for="translate-x-slider">Translate X</label>
<input type="range" name="translate-x" id="translate-x-slider" min="0" max="100000" value="0">
<div id="translate-x-value">0</div>
</div>
<div class="input-group">
<label for="translate-y-slider">Translate Y</label>
<input type="range" name="translate-y" id="translate-y-slider" min="0" max="100000" value="0">
<div id="translate-y-value">0</div>
</div>
</div>
<script src="index.js"></script>
</body>
</html>