aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/search.html
blob: 819c850511642ebba889d24e02774db60a0a2295 (plain)
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
<!DOCTYPE html>
<html lang="en" data-yomichan-page="search">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width,initial-scale=1" />
        <title>Yomichan Search</title>
        <link rel="icon" type="image/png" href="/mixed/img/icon16.png" sizes="16x16">
        <link rel="icon" type="image/png" href="/mixed/img/icon19.png" sizes="19x19">
        <link rel="icon" type="image/png" href="/mixed/img/icon38.png" sizes="38x38">
        <link rel="icon" type="image/png" href="/mixed/img/icon48.png" sizes="48x48">
        <link rel="icon" type="image/png" href="/mixed/img/icon64.png" sizes="64x64">
        <link rel="icon" type="image/png" href="/mixed/img/icon128.png" sizes="128x128">
        <link rel="stylesheet" type="text/css" href="/mixed/lib/bootstrap/css/bootstrap.min.css">
        <link rel="stylesheet" type="text/css" href="/mixed/lib/bootstrap/css/bootstrap-theme.min.css">
        <link rel="stylesheet" type="text/css" href="/mixed/css/display.css">
        <link rel="stylesheet" type="text/css" href="/mixed/css/display-default.css" data-yomichan-theme-name="default">
        <link rel="stylesheet alternate" type="text/css" href="/mixed/css/display-dark.css" data-yomichan-theme-name="dark">
    </head>
    <body>
        <div class="container">
            <div id="intro" style="overflow: hidden;">
                <div class="page-header">
                    <h1>Yomichan Search</h1>
                </div>
                <p style="margin-bottom: 0;">Search your installed dictionaries by entering a Japanese expression into the field below.</p>
            </div>

            <div class="input-group" style="padding-top: 20px;">
                <span title="Enable kana input method" class="input-group-text">
                    <input type="checkbox" id="wanakana-enable" class="icon-checkbox" />
                    <label for="wanakana-enable" class="scan-disable"></label>
                </span>
                <span title="Enable clipboard monitor" class="input-group-text">
                    <input type="checkbox" id="clipboard-monitor-enable" class="icon-checkbox" />
                    <label for="clipboard-monitor-enable"><span class="glyphicon glyphicon-paste"></span></label>
                </span>
            </div>

            <form class="input-group">
                <input type="text" class="form-control" placeholder="Search for..." id="query" autofocus>
                <span class="input-group-btn">
                    <input type="submit" class="btn btn-default form-control" id="search" value="Search">
                </span>
            </form>

            <div id="spinner" hidden><img src="/mixed/img/spinner.gif"></div>

            <div class="scan-disable">
                <div id="query-parser-select" class="input-group"></div>
                <div id="query-parser"></div>
            </div>

            <hr>

            <div id="navigation-header" class="navigation-header" hidden><div class="navigation-header-actions">
                <button class="action-button action-previous"><img src="/mixed/img/source-term.svg" class="icon-image" title="Source term (Alt + B)" alt></button>
                <button class="action-button action-next"><img src="/mixed/img/source-term.svg" class="icon-image" title="Next term (Alt + F)" alt></button>
            </div></div><div class="navigation-header-spacer"></div>

            <div id="content"></div>

            <div id="no-results" hidden>
                <div class="entry">
                    <p>No results found.</p>
                </div>
            </div>
        </div>

        <template id="term-entry-template"><div class="entry" data-type="term">
            <div class="entry-header1">
                <div class="entry-header2">
                    <div class="entry-header3">
                        <div class="actions">
                            <button class="action-button action-view-note pending disabled"><img src="/mixed/img/view-note.svg" class="icon-image" title="View added note (Alt + V)" alt></button>
                            <button class="action-button action-add-note pending disabled" data-mode="term-kanji"><img src="/mixed/img/add-term-kanji.svg" class="icon-image" title="Add expression (Alt + E)" alt></button>
                            <button class="action-button action-add-note pending disabled" data-mode="term-kana"><img src="/mixed/img/add-term-kana.svg" class="icon-image" title="Add reading (Alt + R)" alt></button>
                            <button class="action-button action-play-audio"><img src="/mixed/img/play-audio.svg" class="icon-image" title="Play audio (Alt + P)" alt></button>
                            <span class="action-button action-current-indicator"><img src="/mixed/img/entry-current.svg" class="icon-image current" title="Current entry (Alt + Up/Down/Home/End/PgUp/PgDn)" alt></span>
                        </div>
                        <div class="term-expression-list"></div>
                    </div>
                    <div class="term-reasons"></div>
                </div>
                <div class="frequencies"></div>
            </div>
            <div class="term-definition-container"><ol class="term-definition-list"></ol></div>
            <pre class="debug-info"></pre>
        </div></template>
        <template id="term-expression-template"><div class="term-expression"><span class="term-expression-text"></span><div class="term-expression-details">
            <button class="action-button action-play-audio"><img src="/mixed/img/play-audio.svg" class="icon-image" title="Play audio" alt></button>
            <div class="tags tag-list"></div>
            <div class="frequencies tag-list"></div>
        </div></div></template>
        <template id="term-definition-item-template"><li class="term-definition-item">
            <div class="term-definition-tag-list tag-list"></div>
            <div class="term-definition-only-list"></div>
            <ul class="term-glossary-list"></ul>
        </li></template>
        <template id="term-definition-only-template"><span class="term-definition-only"></span></template>
        <template id="term-glossary-item-template"><li class="term-glossary-item"><span class="term-glossary"></span></li></template>
        <template id="term-reason-template"><span class="term-reason"></span></template>

        <template id="kanji-entry-template"><div class="entry" data-type="kanji">
            <div class="entry-header1">
                <div class="entry-header2">
                    <div class="entry-header3">
                        <div class="actions">
                            <button class="action-button action-view-note pending disabled"><img src="/mixed/img/view-note.svg" class="icon-image" title="View added note (Alt + V)" alt></button>
                            <button class="action-button action-add-note pending disabled" data-mode="kanji"><img src="/mixed/img/add-term-kanji.svg" class="icon-image" title="Add Kanji (Alt + K)" alt></button>
                            <span class="action-button action-current-indicator"><img src="/mixed/img/entry-current.svg" class="icon-image current" title="Current entry (Alt + Up/Down/Home/End/PgUp/PgDn)" alt></span>
                        </div>
                        <div class="kanji-glyph"></div>
                    </div>
                </div>
                <div class="frequencies"></div>
            </div>
            <div class="tags tag-list"></div>
            <table class="kanji-glyph-data"><tbody>
                <tr>
                    <th>Glossary</th>
                    <th>Readings</th>
                    <th>Statistics</th>
                </tr>
                <tr>
                    <td class="kanji-glossary-container"><ol class="kanji-glossary-list"></ol></td>
                    <td class="kanji-readings"><dl class="kanji-readings-chinese"></dl><dl class="kanji-readings-japanese"></dl></td>
                    <td class="kanji-statistics"></td>
                </tr>
                <tr><th colspan="3">Classifications</th></tr>
                <tr><td colspan="3" class="kanji-classifications"></td></tr>
                <tr><th colspan="3">Codepoints</th></tr>
                <tr><td colspan="3" class="kanji-codepoints"></td></tr>
                <tr><th colspan="3">Dictionary Indices</th></tr>
                <tr><td colspan="3" class="kanji-dictionary-indices"></td></tr>
            </tbody></table>
            <pre class="debug-info"></pre>
        </div></template>
        <template id="kanji-info-table-template"><table class="kanji-info-table"><tbody class="kanji-info-table-body"></tbody></table></template>
        <template id="kanji-info-table-item-template"><tr class="kanji-info-table-item"><th class="kanji-info-table-item-header"></th><td class="kanji-info-table-item-value"></td></tr></template>
        <template id="kanji-info-table-empty-template"><tr class="kanji-info-table-item kanji-info-table-item-empty"><td class="kanji-info-table-item-value-empty">No data found</td></tr class="kanji-info-table-item"></template>
        <template id="kanji-glossary-item-template"><li class="kanji-glossary-item"><span class="kanji-glossary"></span></li></template>
        <template id="kanji-reading-template"><dd class="kanji-reading"></dd></template>

        <template id="tag-template"><span class="tag"></span></template>
        <template id="tag-frequency-template"><span class="tag" data-category="frequency"><span class="term-frequency-dictionary-name"></span><span class="term-frequency-separator"></span><span class="term-frequency-value"></span></template>

        <script src="/mixed/lib/handlebars.min.js"></script>
        <script src="/mixed/lib/wanakana.min.js"></script>

        <script src="/mixed/js/core.js"></script>
        <script src="/mixed/js/dom.js"></script>
        <script src="/mixed/js/api.js"></script>

        <script src="/bg/js/dictionary.js"></script>
        <script src="/bg/js/handlebars.js"></script>
        <script src="/bg/js/templates.js"></script>
        <script src="/fg/js/document.js"></script>
        <script src="/fg/js/source.js"></script>
        <script src="/mixed/js/audio.js"></script>
        <script src="/mixed/js/display-context.js"></script>
        <script src="/mixed/js/display.js"></script>
        <script src="/mixed/js/display-generator.js"></script>
        <script src="/mixed/js/japanese.js"></script>
        <script src="/mixed/js/scroll.js"></script>
        <script src="/mixed/js/text-scanner.js"></script>

        <script src="/bg/js/search-query-parser.js"></script>
        <script src="/bg/js/search.js"></script>
        <script src="/bg/js/search-frontend.js"></script>
    </body>
</html>