-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (89 loc) · 4.05 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
<!doctype html>
<html ng-app="countApp">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<body ng-controller="FileController" ng-cloak>
<header>
<div class="container">
<h1 class="text-center">Kanji Tracker</h1>
<a class="fork-me" href="https://github.com/catphive/kanji_tracker">
<img src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png" alt="Fork me on GitHub" />
</a>
</div>
</header>
<div class="container">
<div class="how-to">
<p>This tool uses your kanji flashcard deck to give you a
summary of what kanji you know, and what kanji you need to
learn. The breakdown is relative to the
official <span lang="ja">常用漢字</span> (jouyou kanji)
maintained by the Japanese Ministry of Education.</p>
<p>Export your <a href="http://ankisrs.net/">Anki</a> deck as
plain text, and then open the file here for a summary of your
kanji progress. Duplicates will be automatically removed. Any
text file which contains all of the kanji that you know will
work.</p>
<p>This will not work on any version of IE other than
10. Chrome or Firefox is recommended.</p>
</div>
<fileinput ng-model="files" title="Open Deck"> </fileinput>
<div ng-show="kanjiMatches.length > 0">
<section class="summary">
<h2>All Kanji Learned ({{aggregateMatches.matches.length}}/{{aggregateMatches.kanjis.length}})</h2>
<div lang="ja" class="well kanji learned">
<div class="dropdown kanji-dropdown" ng-repeat="kanji in aggregateMatches.matches">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">{{kanji}}</a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
<li>
<a tabindex="-1"
href="http://jisho.org/words?jap=*{{kanji}}*&eng=&dict=edict&common=on">
Words Containing {{kanji}}
</a>
</li>
<li>
<a tabindex="-1"
href="http://jisho.org/sentences?jap={{kanji}}&eng=">
Sentences Containing {{kanji}}
</a>
</li>
</ul>
</div>
</div>
</section>
<section ng-repeat="match in kanjiMatches">
<h2>{{match.displayName}} ({{match.matches.length}}/{{match.kanjis.length}})</h2>
<div lang="ja" class="well kanji to-learn">
<div class="dropdown kanji-dropdown" ng-repeat="kanji in match.misses">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">{{kanji}}</a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
<li>
<a tabindex="-1"
href="http://jisho.org/words?jap=*{{kanji}}*&eng=&dict=edict&common=on">
Words Containing {{kanji}}
</a>
</li>
<li>
<a tabindex="-1"
href="http://jisho.org/sentences?jap={{kanji}}&eng=">
Sentences Containing {{kanji}}
</a>
</li>
</ul>
</div>
</div>
</section>
</div>
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/1.2.1/lodash.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.js"></script>
<script src="count.js" charset="UTF-8"></script>
</div>
</body>
</html>