-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (65 loc) · 2.51 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Etch-a-Sketch</title>
<link rel='icon' href='images/favicon.png' />
<link href='style.css' rel='stylesheet'>
</head>
<body>
<div id="title-container">
<h1>Etch-a-Sketch</h1>
<button id="start" class="controls begin">Start</button>
</div>
<div id="game-container">
<div id="buttons-container">
<button class="controls black">Black</button>
<button class="controls rainbow">Rainbow</button>
<button class="controls pencil">Pencil</button>
<button class="controls resize">Resize Grid</button>
<button class="controls clear">Clear Grid</button>
</div>
<div id="grid-status-container">
<p class="status"></p>
<div id="grid-container"></div>
</div>
<div id="choose-color">
<button class="choose controls">Custom Color Picker</button>
</div>
</div>
<div id="modal-root">
<div id="modal">
<div class="close-button">
<button aria-label="Close Result Modal Box" class="close">×</button>
</div>
<div class="modal-content">
<p>Create a color using RGB values:</p>
<div id="sliders">
<fieldset>
<label for="r">R</label>
<input type="range" min="0" max="255" id="red" step="1" value="75">
<output for="r" id="r_out">75</output>
</fieldset>
<fieldset>
<label for="g">G</label>
<input type="range" min="0" max="255" id="green" step="1" value="255">
<output for="g" id="g_out">255</output>
</fieldset>
<fieldset>
<label for="b">B</label>
<input type="range" min="0" max="255" id="blue" step="1" value="175">
<output for="b" id="b_out">175</output>
</fieldset>
</div>
<div id="color-preview">
<button id="custom-color-accept">OK</button>
</div>
</div>
</div>
</div>
<footer id="author">by GrinninBarrett 2020</footer>
<script src="scripts/main.js"></script>
<script src="scripts/rainbow.js"></script>
</body>
</html>