/
index.html
79 lines (50 loc) · 1.49 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
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Etch-a-Sketch</title>
<link rel="stylesheet" href="css/styles.css">
<script type="text/javascript" src="js/colorpicker.js"></script>
<link rel="stylesheet" type="text/css" href="css/themes.css" />
</head>
<body>
<div id="header">
<header>
<h1>Etch a Sketch</h1>
</header>
</div>
<div id="butons">
<button id="reset">Reset initial 16x16</button>
<button id="rainbow">Rainbow Mode</button>
<button id="drawmode">Draw Mode</button>
<div>
<div id="select">
<input id="squares" class="form" type="number" name="squares" value="16"/>
<input id="submit" class="form" type="submit" value="Resize" />
</div>
</div>
</div>
<div id="all">
<div id="color-picker" class="cp-normal">
</div>
<div id="generalDiv" >
<div id="container">
<!--Inserted divs-->
</div>
<div id="container2" style="display: none;">
<!--Inserted divs-->
</div>
</div>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript">
ColorPicker(
document.getElementById('color-picker'),
function(hex, hsv, rgb) {
document.body.style.color = hex;
});
</script>
</div>
</div>
</body>
</html>