-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (59 loc) · 2.55 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Etch a Sketch</title>
<link href="style.css" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"
>
<link href="https://fonts.googleapis.com/css2?family=Fredoka+One"
rel="stylesheet">
<link href="brush.png" rel="icon">
</head>
<body>
<header class="header">
<div class="spacer"></div>
<h1 class="title">Etch a Sketch</h1>
<i class="material-icons" style="font-size:90px;">brush</i>
</header>
<main class="main">
<div class="controls">
<div class="color_controls">
<input id="brushColorPicker" type="color" value="#000000"/>
<div class="color_label">Solid Brush Color</div>
</div>
<button id="brushButton">Solid Color Brush</button>
<button id="rainbowButton">Rainbow Brush</button>
<button id="eraserButton">Eraser</button>
<button id="clearButton">Clear Grid</button>
<div class="color_controls" style="margin-top: 1em;">
<input id="backgroundColorPicker" type="color" value="#FFFFFF"/>
<div class="color_label">Background Color</div>
</div>
<button id="gridLinesButton">Toggle Grid Lines</button>
<div class="size_controls">
<div class="size_value" id="rowValue">Rows:</div>
<input id="rowSlider" max="70" min="1" type="range" value="15"/>
<div class="size_value" id="columnValue">Columns:</div>
<input id="columnSlider" max="70" min="1" type="range" value="15"/>
</div>
<div class="size_value" id="sizeValue">15 × 15</div>
</div>
<div class="grid_wrapper">
<div class="grid" id="grid"></div>
</div>
</main>
<footer class="footer">
<div class="copyright">
Copyright ©
<script>
document.write(new Date().getFullYear())
</script>
Charles Tian
</div>
</footer>
<script src="script.js"></script>
</body>
</html>