-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.html
92 lines (78 loc) · 2.55 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
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Web WhiteBoard</title>
<link href="./src/index.css" rel="stylesheet" />
</head>
<body>
<div class="sticky">
<ul class="list-none main-container">
<li><a href="#">File</a></li>
<li class="active">
<a href="#">Edit</a>
</li>
</ul>
<div class="toolsContainer">
<ul class="list-none child-container">
<li>
<p onclick="web_whiteboard.clearAll()">
<img src="./static/icons/trash.svg" />
<span>Trash Work</span>
</p>
</li>
<li>
<p onclick="web_whiteboard.newPage()">
<img src="./static/icons/create-file.svg" />
<span>Add New Page</span>
</p>
</li>
<li>
<p onclick="web_whiteboard.undo()">
<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26"
fill="currentColor" class="bi bi-arrow-counterclockwise" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M8 3a5 5 0 1 1-4.546 2.914.5.5 0 0 0-.908-.417A6 6 0 1 0 8 2v1z" />
<path
d="M8 4.466V.534a.25.25 0 0 0-.41-.192L5.23 2.308a.25.25 0 0 0 0 .384l2.36 1.966A.25.25 0 0 0 8 4.466z" />
</svg>
<span>Undo</span>
</p>
</li>
<li>
<p onclick="web_whiteboard.saveImage()">
<img src="./static/icons/save-file.svg" />
<span>Save as Image</span>
</p>
</li>
<li>
<p onclick="web_whiteboard.saveWork()">
<img src="./static/icons/save-work.svg" />
<span>Save Work</span>
</p>
</li>
<li>
<p onclick="clearStorage()">
<img src="./static/icons/delete-work.svg" />
<span>Delete Saved Work</span>
</p>
</li>
<div class="right">
<span class="black-board-text">Black Board</span>
<label class="switch">
<input type="checkbox" id="toggleTheme" checked />
<span class="slider round"></span>
</label>
</div>
</ul>
</div>
</div>
<div id="canvas_div">
<canvas id="white_board"></canvas>
</div>
<a id="imageGetter"></a>
<img src="https://visitor-badge.laobi.icu/badge?page_id=ayush8010720467_web_whiteboard" height="1px" width="1px" />
</body>
<script src="./src/index.js"></script>
</html>