-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
78 lines (76 loc) · 3.69 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
<!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">
<script src="index.js" defer></script>
<link rel="shortcut icon" href="./pencil.png" type="image/x-icon">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<title>Web Paint</title>
</head>
<body>
<header>
<h2> Web Paint </h2>
<div class="tools">
<button type="button" title="Eraser" onclick="erase()" class="btn"><i class="fa-solid fa-eraser"></i></button>
<button type="button" title="Save Sketch" onclick="onSave()" class="btn"><i class="fa-solid fa-floppy-disk"></i></button>
<button type="button" class="color-btn btn">
<input type="color" id="color-picker">
<label for="color-picker">
<div></div>
Color
</label>
</button>
<button onclick="sizeList()" class="size-btn btn"><i class="fa-solid fa-pen"></i><span>Size</span><i
class="fa-solid fa-caret-down"></i>
<ul class="size-list">
<li>
<div class="size" style="--set-size:02px"></div>
</li>
<li>
<div class="size" style="--set-size:05px"></div>
</li>
<li>
<div class="size" style="--set-size:08px"></div>
</li>
<li>
<div class="size" style="--set-size:10px"></div>
</li>
<li>
<div class="size" style="--set-size:15px"></div>
</li>
</ul>
</button>
<div class="color-palette">
<span class="color" style="--set-color:#000000"></span>
<span class="color" style="--set-color:#808080"></span>
<span class="color" style="--set-color:#800000"></span>
<span class="color" style="--set-color:#ff0000"></span>
<span class="color" style="--set-color:#ff4500"></span>
<span class="color" style="--set-color:#ffff00"></span>
<span class="color" style="--set-color:#008000"></span>
<span class="color" style="--set-color:#00a2e8"></span>
<span class="color" style="--set-color:#3f48cc"></span>
<span class="color" style="--set-color:#a349a4"></span>
<span class="color" style="--set-color:#ffffff"></span>
<span class="color" style="--set-color:#c3c3c3"></span>
<span class="color" style="--set-color:#b97a57"></span>
<span class="color" style="--set-color:#ffaec9"></span>
<span class="color" style="--set-color:#ffc90e"></span>
<span class="color" style="--set-color:#efe4b0"></span>
<span class="color" style="--set-color:#b5e61d"></span>
<span class="color" style="--set-color:#99d9ea"></span>
<span class="color" style="--set-color:#7092be"></span>
<span class="color" style="--set-color:#c8bfe7"></span>
</div>
</div>
</header>
<div class="canvas-container">
<canvas id="draw"></canvas>
</div>
</body>
</html>