-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
68 lines (68 loc) · 2.29 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Etch A Sketch</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="assets/coloris/coloris.min.css" />
<script src="assets/coloris/coloris.min.js" defer></script>
<script src="assets/html2canvas.min.js" defer></script>
<script src="scripts.js" defer></script>
</head>
<body>
<div class="container">
<div class="header">
<div class="heading">Etch A Sketch</div>
<div>
<form id="sizeChangeForm">
<label>Change grid size:</label>
<input type="text" id="inputSize" maxlength="3" />
<button type="submit">Set Grid Size</button>
</form>
</div>
<div>
<label for="toggleRandomColour">Random colour mode:</label
><input type="checkbox" id="toggleRandomColour" />
</div>
<div id="nonRandomModeContainer">
<label>Set colour:</label>
<input type="text" id="colourPicker" data-coloris />
</div>
<div>
<label for="resetGrid">Press R or click </label
><button id="resetGrid">RESET</button
><label for="resetGrid"> to reset sketch</label>
</div>
</div>
<div class="sketchpad"></div>
<div class="faq">
<a href="https://en.wikipedia.org/wiki/Etch_A_Sketch" target="_blank"
>What's this game?</a
><br /><br />
How to draw:
<ul>
<li>
Desktop: Left-click OR hold the Control key down and move the mouse
within the drawing area
</li>
<li>Mobile: Tap anywhere within the drawing area</li>
</ul>
</div>
<div class="footer">
<div>
<button id="exportAsImage">Export Your Sketch As Image</button>
</div>
<div id="screenshotImageContainer"></div>
<div>
<label for="toggleGrid">Show Grid:</label
><input type="checkbox" id="toggleGrid" />
</div>
<div>
<button id="clearStorage">Reset All Settings To Default</button>
</div>
View this website on desktop/laptop for the best experience.
</div>
</div>
</body>
</html>