-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathviewer.html
59 lines (57 loc) · 1.81 KB
/
viewer.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
---
layout: default
title: Viewer
name: viewer.html
nidera: https://github.com/nihongodera/kanjivganimate
description: A JavaScript viewer for the KanjiVG kanji vector graphics
---
<script>
{% include_relative viewer-top.js %}
</script>
<div class="page-header">
<h1>KanjiVG Viewer</h1>
</div>
<form id="kanjiViewerParams" action="#" class="form-horizontal">
<fieldset>
<div id="viewer-controls">
<div id="kanji-etc">
<div>
<label id="kanji-label" for="kanji">Kanji:</label>
<input class="viewer-input" type="text" value="" id="kanji" placeholder="線" onchange="changeBox();">
</div>
</div>
<div id="kanji-options">
<p>
<input type="checkbox" name="displayOrders" id="displayOrders" checked="on" onchange="changeNoShowSO(); changeBox();">
<label for="displayOrders">Display stroke order</label>
</p>
<p>
<input type="checkbox" name="radicals" id="radicals" onchange="changeRadicals(); changeBox();">
<label for="radicals">Show the radicals</label>
</p>
<p>
<input type="checkbox" name="colorGroups" id="colorGroups" onchange="changeColorGroups(); changeBox();">
<label for="colorGroups">Show the component groups</label>
</p>
</div>
<div id="kanji-actions">
<input type="submit" value="Draw">
<button id="animate" class="kanjivg-button" data-kanjivg-target="#kanji-svg">Animate</button>
<button id="random" class="kanjivg-button" onclick="gotoRandom();">Random</button>
</div>
</div>
</fieldset>
</form>
<div id="kanji-visuals">
<div id="kanji-image"></div>
<div id="sub-images">
<div id="radical-images">
</div>
<div id="group-images">
</div>
</div>
</div>
<!-- Messages for the user, for example if the kanji
is not found. -->
<div id="user-message">
</div>