-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
85 lines (70 loc) · 3.3 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
84
85
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Zdog UI</title>
<link rel="stylesheet" href="illo.css">
</head>
<body>
<main>
<section class="controls">
<section class="controls_illo">
<div class="parameter">
<label for="canvas_width">Canvas width: </label>
<input type="number" id="canvas_width" name="parameter_illo" value="240" min="36" max="1080" step="1">
</div>
<div class="parameter">
<label for="canvas_height">Canvas height: </label>
<input type="number" id="canvas_height" name="parameter_illo" value="240" min="36" max="1080" step="1">
</div>
<div class="parameter">
<input type="checkbox" id="dragRotate" name="parameter_illo" value="dragRotate">
<label for="dragRotate">Drag Rotate</label>
</div>
<div class="parameter">
<input type="checkbox" id="animate" name="parameter_illo" value="animate" checked>
<label for="animate">Animate</label>
</div>
<div class="subparameter">
<label for="rotate_x">Rotate x: </label>
<input type="number" id="rotate_x" name="parameter_illo" value="0" min="-1" max="1" step="0.01">
</div>
<div class="subparameter">
<label for="rotate_y">Rotate y: </label>
<input type="number" id="rotate_y" name="parameter_illo" value="0.03" min="-1" max="1" step="0.01">
</div>
</section>
<section class="controls_shape">
<div class="parameter">
<label for="diameter1">Diameter = </label>
<span id="diameter1value">100</span>
<input type="range" class="diameter" id="diameter1" name="parameter_shape1" min="0" max="240" value="100"
step="1">
</div>
<div class="parameter">
<label for="stroke1">Stroke = </label>
<span id="stroke1value">20</span>
<input type="range" class="stroke" id="stroke1" name="parameter_shape1" min="0" max="240" value="20" step="1"
list="tickmarks_stroke">
</div>
<div class="parameter">
<label for="color1">Color = </label>
<span id="color1value">#663366</span>
<input type="color" class="color" id="color1" name="parameter_shape1" value="#663366">
</div>
</section>
</section>
<section class="results">
<section class="illustration">
<canvas id="illo"></canvas>
</section>
<section id="container"></section>
</section>
</main>
</body>
<script src="https://unpkg.com/zdog@1/dist/zdog.dist.min.js"></script>
<script src="illo.js"></script>
<script src="./min/vs/loader.js"></script>
<script src="my_editor.js"></script>
</html>