-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (44 loc) · 1.37 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>
<script src="etch-a-sketch.js" defer></script>
<link rel="stylesheet" href="etch-a-sketch.css" />
</head>
<body>
<h1 class="primary-title">Etch-a-sketch</h1>
<div class="etch-a-sketch">
<div class="etch-a-sketch__grid" id="grid"></div>
<div class="etch-a-sketch__toolbar">
<div class="etch-a-sketch__btn-wrapper">
<button class="btn btn__mode btn__mode--single" id="singlecolor-btn">
Color mode
</button>
<span
><input
type="color"
class="btn__color-input"
id="color-input"
name="color-input" />
<label for="color-input"></label
></span>
</div>
<button class="btn btn__mode" id="rainbow-btn">🌈 Rainbow mode</button>
<button class="btn btn__mode" id="eraser-btn">⎚ Eraser</button>
<button class="btn btn__mode" id="clear-btn">⨯ Clear canvas</button>
<div class="toggle">
<input
type="range"
class="toggle__range-input"
id="grid-size-input"
name="grid-size-input"
min="1"
max="100"
/>
<label for="grid-size-input"
>Grid size: <span id="grid-size-label"></span
></label>
</div>
</div>
</div>
</body>
</html>