-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (44 loc) · 1.43 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="reset.css" />
<link rel="stylesheet" href="style.css" />
<title>Etch-A-Sketch</title>
</head>
<body>
<div class="flex-container">
<div class="title"><h1>Etch-A-Sketch</h1></div>
<div class="mode">Mode: Coloring</div>
<div class="content">
<div class="board"></div>
<div class="buttons">
<button class="blackButton" onclick="changeColor('black')">
Black
</button>
<button class="eraserButton" onclick="changeColor('white')">
Eraser
</button>
<button class="grayButton" onclick="changeColor('gray')">Gray</button>
<button class="randomButton" onclick="changeColor('random')">
Random
</button>
<button class="resetButton" onclick="resetBoard()">Reset</button>
</div>
<div>
<input
type="text"
placeholder="Size of Board"
value="16"
onchange="changeSize(this.value)"
/>
<button class="setButton">Set Size</button>
</div>
<div class="error">Input must be between 2 and 100</div>
</div>
</div>
</body>
<script src="main.js"></script>
</html>