-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
197 lines (181 loc) · 8.97 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!-- Bismillah -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Uchiwake Kanji</title>
<link rel="shortcut icon" type="image/jpg" href="../jp/html/local-resources/images/favicon/favicon.png"/>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Breakdown Kanji">
<meta name="keywords" content="Breakdown Kanji, Kanji Information, Kanji Details, Kanji Structure">
<meta property="og:type" content="website">
<meta property="og:url" content="https://uchiwakekanji.github.io/jp/">
<link rel="stylesheet" href="../jp/html/css/custom.css" type="text/css">
<link rel="stylesheet" href="../jp/html/css/kjwk.css" type="text/css">
<link rel="stylesheet" href="../jp/html/local-resources/maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="../jp/html/local-resources/cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.css" type="text/css">
<script src="../jp/html/local-resources/ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script src="../jp/html/local-resources/maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="../jp/html/local-resources/gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
<script src="../jp/html/local-resources/cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.js"></script>
<script src="../jp/html/local-resources/unpkg.com/wanakana/5.1.0/wanakana.min.js"></script>
</head>
<body>
<!-- No standard header for this page -->
<script src="../jp/html/local-resources/cdn.rawgit.com/danang.priabada/kanji-dict2.js"></script>
<script src="../jp/html/js/kjwk-composition.js"></script>
<script src="../jp/html/js/kjwk-radical-defs.js"></script>
<script src="../jp/html/js/kjwk-ijidoukun.js"></script>
<script src="../jp/html/js/kjwk-related.js"></script>
<script src="../jp/html/js/kjwk-altforms.js"></script>
<script src="../jp/html/js/kjwk-patch.js"></script>
<script src="../jp/html/js/kjwk-cjk-strokes.js"></script>
<script src="../jp/html/js/common.js"></script>
<!-- Main Container -->
<div class="container-fluid">
<div class="row">
<div class="col-md-3 col-lg-3 col-xl-3 search-bar">
<div class="input-group">
<input id="lookup_kanji" type="text" class="form-control" onfocus="this.select();" aria-label="Search" placeholder="Search Kanji">
<span class="input-group-btn">
<button class="btn btn-default" type="button" onclick="lookup();" aria-label="Search">
<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
</button>
<button id="suggest-group" type="button" class="btn btn-primary" onclick="chooseRandom();">Random</button>
</span>
</div>
</div>
<div class="col-md-3 col-lg-3 col-xl-3 additional-info">
<div>
<button id="help-group" type="button"class="btn btn-primary" data-toggle="modal" data-target="#help-modal"><i class="glyphicon glyphicon-question-sign"></i></button>
</div>
</div>
<!-- Modal Popup parade of divs for help/info overlay -->
<div id="help-modal" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">About 漢字内訳 (Kanji Breakdown)</h4>
</div>
<div class="modal-body">
<p><b>Click</b> on any kanji to display dictionary information; <b>double-click</b> to set that kanji as the focal point.</p>
<p>I developed this tool to comprehensively explore all aspects of kanji, going beyond mere radicals, in order to uncover connections among different characters. For instance, 風 and 嵐 have distinct radicals, yet they share 9 strokes: a different kanji (覧) with the same kunyomi (らん) as the aforementioned ones.</p>
<p>A component could convey phonetic resonance or semantic significance, or it might be a result of historical transformations and simplifications. This tool strictly examines visual associations, sidestepping intricate deductions that could lead to inaccuracies. It does call attention to:</p>
<ul>
<li>Shared kunyomi or matching onyomi + meaning</li>
<li>Variant forms of radicals</li>
</ul>
<p>At least two similar sites are worth checking out, these site will gave you more complex result:</p>
<ul>
<li><a href="http://suiren.io/" target="_blank">Suiren</a> (hop between compounds) — presently unavailable</li>
<li><a href="https://thekanjimap.com/index.html" target="_blank">The Kanji Map</a> (similar to this tool, and was there first)</li>
</ul>
<div style="margin-bottom: 5%;"><h2 >Legend</h2></div>
<div id="legend">
<p class="kanji-main">Main Kanji</p>
<p class="kanji-other">Part of Main</p>
<p class="kanji-partof">Contains Main</p>
<p class="kanji-radical">Radical of Main</p>
<p class="kanji-shared-onyomi">Shared 音読み with Main</p>
<p class="kanji-ijidoukun">Shared 訓読み and meaning with Main</p>
<p class="kanji-no-dict">No dictionary info</p>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div> <!-- /modal-content -->
</div> <!-- /modal-dialog -->
</div> <!-- /myModal -->
<!-- Modal for kanji not found -->
<div id="modal-notfound" class="modal fade" role="dialog" tabindex="-1">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">申し訳ありません, no kanji found</h4>
</div>
<div class="modal-body">
The search term "<span id='notfound-string'>placeholder</span>" does not have any kanji this tool knows about. It does know all the jouyou kanji and a few more — about 2,500 total. Try the <b>"Random"</b> button to see an example.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div> <!-- /modal-content -->
</div> <!-- /modal-dialog -->
</div> <!-- /modal-notfound -->
</div>
</div>
<div id="left-part" class="col-md-9 col-lg-9 col-xl-9">
<div style="position:relative">
<div id="visgraph" class="maincanvas canvas-size"></div>
</div>
</div>
<div id="right-part" class="col-md-3 col-lg-3 col-xl-3 right-side-scroll">
<div class="row">
<hr style="margin-left: 5%; margin-right: 5%; display: block; border-style: solid; border-width: 1px; color: rgb(218, 220, 221);">
<h4 id="kanji-info-label"><small>KANJI INFORMATION</small></h4>
<div class="form-group furigana-toggle-position">
<div class="checkbox checbox-switch switch-primary">
<label>
<input id="furigana" type="checkbox" onchange="toggleSnackbar()"/>
<span></span>
Romaji
</label>
</div>
</div>
<div id="snackbar"></div>
<hr style="margin-left: 5%; margin-right: 5%; display: block; border-style: solid; border-width: 1px; color: rgb(218, 220, 221);">
<h1 id="kanji777"></h1>
<div id="link-refereces">
<h5><span class="glyphicon glyphicon-link"></span> Click the link below for more details</h5>
<h4>
<span class="label label-success"><a id="jisho-link" target="_blank" href="#" class="colored-link">Jisho</a></span>
<span class="label label-warning"><a id="jitenon-link" target="_blank" href="#" class="colored-link">Jitenon</a></span>
<span class="label label-default"><a id="wiktionary-link" target="_blank" href="#" class="colored-link">Wiktionary</a></span>
<span class="label label-primary"><a id="niaia-link" target="_blank" href="#" class="colored-link">Niaia</a></span>
</h4>
</div>
<br>
<div id="right-part-bottom">
<table class="table">
<tr>
<th>音読み</th>
<td id="onyomi" style="width: 100%"></td>
</tr>
<tr>
<th>訓読み</th>
<td id="kunyomi" style="width: 100%"></td>
</tr>
<tr>
<th>常用</th>
<td id="isjouyou" style="width: 100%"></td>
</tr>
<tr>
<th>意味</th>
<td id="meanings" style="width: 100%"></td>
</tr>
<tr>
<th>関係</th>
<td id="relation" style="width: 100%"></td>
</tr>
<tr>
<ruby><th>探索した</th></ruby>
<td id="looked_up" style="width:100%"></td>
</tr>
<div id="row-data" class="row">
<table class="table right-side-sub-scroll">
<th style="word-break: keep-all">最近</th>
<td style="width:100%; height: auto;" id="recent"></td>
</tr>
</table>
</div>
</table>
</div>
</div>
</div>
</div>
</body>
<script src="../jp/html/js/kjwk-logic.js"></script>
</html>