-
Notifications
You must be signed in to change notification settings - Fork 1
/
popup.html
72 lines (62 loc) · 2.76 KB
/
popup.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>KanjiThing</title>
<link rel="stylesheet" href="css/popup.css">
<!-- Scripts -->
<script src="js/libs/rembrandt.js"></script>
<script src="js/utilities.js" type="module"></script>
<script src="js/popup.js" type="module" defer></script>
<script src="js/canvas.js" defer></script>
<noscript>You need to enable JavaScript for this extension to work</noscript>
</head>
<body>
<div id="popup-outer" style="display: none;">
<div id="popup-inner">
<span></span>
</div>
</div>
<!-- Open settings button -->
<button id="settings">⚙️</button>
<div id="drawsection">
<div id="drawcontainer">
<video id="kanjiguide" draggable="false" width="248" height="248" poster="/media/loading.png" autoplay>
Your browser does not support the video element.
You really need to install a better browser 😕
</video>
<canvas id="drawcanvas" width="248" height="248">
Your browser does not support the canvas element.
You really need to install a better browser 😕
</canvas>
</div>
<!-- Panel beneath canvas/video thing -->
<div id="panel">
<input type="button" id="playpause" title="Play/pause the animation" value="⏸" />
<input type="button" id="eraseall" title="Erase your drawing" value="🗑️" />
<select id="selectedset" title="Select a custom set or Wakatta unit to learn">
<!-- Custom sets are loaded in from the Chrome storage -->
</select>
<select id="selectedkanji" title="Select a kanji to learn">
<!-- Kanji sets are loaded in through the loadKanjiSet function -->
</select>
<input type="button" id="remcheck" title="Evaluate & score your drawing" value="✔️" />
</div>
</div>
<div id="sectiondivider">
<!-- A vertical divider bar to seperate the sections -->
</div>
<div id="infosection">
<!-- Automatically shown/hidden with the "offline" class name on parent -->
<h1 id="offlineindicator">You are offline</h1>
<h1><span id="selectedkanjidetails"></span> <span id="selectedkanjimeaning"></span></h1>
<div id="articlecontainer">
<span class="article">Readings <span id="onkunyomi"></span></span>
<span class="article">Strokes <span id="strokecount"></span> Grade <span class="article" id="grade"></span></span>
</div>
<ul id="exampleslist">
<!-- This list will be populated with examples from the API -->
</ul>
</div>
</body>
</html>