-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (40 loc) · 1.75 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
<!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">
<title>E-Sketch</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- make a header for show the project name -->
<header>E Sketch</header>
<!-- create a mainHomeSection for fix in all the element -->
<section id="mainHomeSection">
<!-- make a controls buttons -->
<div id="controls">
<!-- Reset button refresh all the page -->
<button id="resetButton" onclick="reloadFunction()">RESET</button>
<!-- Eraser button remove the colour form the box -->
<button id="eraserButton" onclick="eraser()">ERASER</button>
<!-- black button is select the black colour to paint the boxs the defalut colour is black -->
<button id="blackButton" onclick="blackColorFunction()">BLACK</button>
<!-- this button is select a random rgb colour for paint the bos -->
<button id="rgbButton" onclick="rgbcolor()">RGB</button>
<!-- this section is made for select the gridDencity -->
<p>select the gridDencity for Sketch box</p>
<section id="controlButtonSection">
<button class="control-buttons" onclick="createGrid(8)">8*8</button>
<button class="control-buttons" onclick="createGrid(16)">16*16</button>
<button class="control-buttons" onclick="createGrid(32)">32*32</button>
</section>
</div>
<div id="gridContainer">
<div id="container">
</div>
</div>
</section>
</body>
<script src="script.js"></script>
</html>