-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (59 loc) · 2.34 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
<!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>Drawing Board</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<canvas class = "canvas"></canvas>
<div class = "main-container">
<div class ="tools">
<button class = "pen" class = "active" title = "Draw">
<i class="fas fa-pen icon"></i>
</button>
<button class = "eraser icon" title = "Eraser">
<i class="fas fa-eraser erase icon"></i>
</button>
<button class = "clear" title = "Clear the canvas"> Clear
<!-- <i class="fas fa-eraser erase"></i> -->
</button>
</div>
<div class ="color-bar penColors">
<button class = "colors red" title = "Red"></button>
<button class = "colors green" title = "Green"></button>
<button class = "colors black" title = "Black"></button>
<button class = "colors blue" title = "Blue"></button>
</div>
<input class = "randomCol" type = "color" title = "Select Random Color"></input>
<div class = "otherOperations">
<button class = "save" title = "Save" >
<i class="fas fa-save icon"></i>
</button>
<button class = "undo" title = "Undo" >
<i class="fas fa-undo icon"></i>
</button>
<button class = "redo" title = "Redo">
<i class="fas fa-redo icon"></i>
</button>
</div>
</div>
<button class = "gallery " title = "Gallery">
<i class="fas fa-images icon gallerycol"></i>
</button>
<script src="dbScript.js"></script>
<script src="script.js"></script>
<script>
let galleryBtn = document.querySelector(".gallery");
galleryBtn.addEventListener("click", function()
{
location.assign("gallery.html");
});
</script>
</body>
</html>