-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (71 loc) · 2.77 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
<!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>Paint Board</title>
<link rel="icon" href="/static/favicon.png" type="image/png" />
<link rel="stylesheet" href="./src/styles/reset.css" />
<link rel="stylesheet" href="./src/styles/vars.css" />
<link rel="stylesheet" href="./src/styles/main-content.css" />
<link rel="stylesheet" href="./src/styles/modal.css" />
<link rel="stylesheet" href="./src/styles/tooltip.css" />
<link rel="stylesheet" href="./src/styles/media-query.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
</head>
<body>
<canvas id="screen" class="screen"></canvas>
<div class="drawing-tools">
<input id="colorPicker" class="jscolor" value="000000" />
<button id="erase" class="btn btn-erase" type="button">
<img
id="eraserIcon"
src="./src/assets/icons/eraser-icon.svg"
alt="Eraser Icon"
/>
<img
id="penIcon"
class="pen-icon"
src="./src/assets/icons/pen-icon.svg"
alt="Pen Icon"
/>
</button>
<button id="save" class="btn btn-save" type="button">
<img
src="./src/assets/icons/floppy-disk-icon.svg"
alt="Floppy Disk Icon"
/>
<div id="saveTooltip" class="tooltip save-tooltip">Save as image</div>
</button>
<button id="clear" class="btn btn-clear" type="button">
<img src="./src/assets/icons/trash-icon.svg" alt="Trash Icon" />
<div id="clearTooltip" class="tooltip clear-tooltip">Clear</div>
</button>
</div>
<div id="modal" class="modal">
<div id="modalContent" class="modal-content">
<p class="modal-msg">Confirm clearing content?</p>
<div class="modal-btns">
<button id="confirmClear" class="btn confirm-clear" type="button">
Confirm
</button>
<button id="cancelClear" class="cancel-clear" type="button">
Cancel
</button>
</div>
</div>
</div>
<script src="src/libs/jscolor/jscolor.min.js"></script>
<script src="src/libs/jscolor/jscolor.config.js"></script>
<script src="src/js/tooltip.js"></script>
<script src="src/js/main.js"></script>
<script src="src/js/undoRedo.js"></script>
<script src="src/js/localStorage.js"></script>
</body>
</html>