-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathroots.html
More file actions
187 lines (181 loc) · 6.66 KB
/
roots.html
File metadata and controls
187 lines (181 loc) · 6.66 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="description" content="" />
<meta name="author" content="" />
<title>HSK Character Frequency | Chinese Zero to Hero</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="css/hsk-dictionary.css" rel="stylesheet" />
</head>
<body>
<!-- Page Content -->
<div id="roots">
<div class="container-fluid top-bar">
<div class="container">
<div class="row">
<div class="col-sm-12">
<h1 class="title">
<a href="https://www.chinesezerotohero.com">
<img src="img/logo-mark.png" class="logo" alt="" />
</a>
<span class="title-text">HSK Character Frequency</span>
</h1>
</div>
</div>
</div>
</div>
<div class="container mt2">
<div class="row">
<div class="col-sm-12">
<p>Click on table headers to <b>sort</b>.</p>
<p><b>Click on a number</b> to see examples.</p>
<table class="table" id="character-table">
<thead>
<tr>
<th v-on:click="tableHeadingClick" data-field="character">
Character
</th>
<th v-on:click="tableHeadingClick" data-field="first">
As First Char.
</th>
<th v-on:click="tableHeadingClick" data-field="middle">
As Middle Char.
</th>
<th v-on:click="tableHeadingClick" data-field="last">
As Last Char.
</th>
<th v-on:click="tableHeadingClick" data-field="any">
Anywhere
</th>
</tr>
</thead>
<tbody>
<tr
v-for="character in characters"
v-if="character.data"
v-cloak
>
<td>
<b>{{ character.character }}</b>
<span class="character-example-pinyin">{{
character.data.pinyin[0]
}}</span>
</td>
<td>
<div class="count" v-on:click="countClick">
{{ character["first"].length }}
</div>
<ul class="character-examples hidden">
<li
v-for="word in character['first']"
class="character-example"
>
<a
class="character-example-word"
:data-hsk="word['Book']"
:href="'index.html#' + word['Word']"
target="_blank"
>{{ word["Word"] }}</a
>
<span class="character-example-pinyin">{{
word["Pinyin"]
}}</span>
</li>
</ul>
</td>
<td>
<div class="count" v-on:click="countClick">
{{ character["middle"].length }}
</div>
<ul class="character-examples hidden">
<li
v-for="word in character['middle']"
class="character-example"
>
<a
class="character-example-word"
:data-hsk="word['Book']"
:href="'index.html#' + word['Word']"
target="_blank"
>{{ word["Word"] }}</a
>
<span class="character-example-pinyin">{{
word["Pinyin"]
}}</span>
</li>
</ul>
</td>
<td>
<div class="count" v-on:click="countClick">
{{ character["last"].length }}
</div>
<ul class="character-examples hidden">
<li
v-for="word in character['last']"
class="character-example"
>
<a
class="character-example-word"
:data-hsk="word['Book']"
:href="'index.html#' + word['Word']"
target="_blank"
>{{ word["Word"] }}</a
>
<span class="character-example-pinyin">{{
word["Pinyin"]
}}</span>
</li>
</ul>
</td>
<td>
<div
class="count"
v-on:click="countClick"
style="font-weight: bold"
>
{{ character["any"].length }}
</div>
<ul class="character-examples hidden">
<li
v-for="word in character['any']"
class="character-example"
>
<a
class="character-example-word"
:data-hsk="word['Book']"
:href="'index.html#' + word['Word']"
>{{ word["Word"] }}</a
>
<span class="character-example-pinyin">{{
word["Pinyin"]
}}</span>
</li>
</ul>
</td>
</tr>
<tr>
<td>
Loading...
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="vendor/vue/vue.js"></script>
<script src="vendor/papaparse/papaparse.min.js"></script>
<script src="js/roots.js"></script>
<script></script>
</body>
</html>