-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
40 lines (31 loc) · 1.35 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Etch A Sketch!</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>Etch-A-Sketch!</h1>
</header>
<main>
<div class="left">
<button class="btn" id="eraser" onclick="changeColor('white')">Eraser</button>
<button style='background-color: black; color:white' class="btn" id="black" onclick="changeColor('black')">Black</button>
<button style='background-color:rgb(80, 80, 80);color: white;' class="btn" id="grey" onclick="changeColor('grey')">Grey</button>
<button class="btn" id="rainbow" onclick="changeColor('rainbow')">Rainbow</button>
<button class="btn" id="reset" onclick="clearBoard()">Clear Board</button>
<input type="text" placeholder="Size of Board" value="16" onchange="changeSize(this.value)" />
<button class="btn">Set Size</button>
<button class="btn" id="removeGrid" onclick="removeGrid()"> Remove Grid Lines</button>
</div>
<div class="right">
<div id="grid" class="grid"></div>
</div>
</main>
<script src="etchjs.js"></script>
</body>
</html>