Options page TLC
This commit is contained in:
parent
83af15e94b
commit
055174efd2
@ -43,8 +43,25 @@ function modelIdToFieldOptKey(id) {
|
|||||||
|
|
||||||
function modelIdToMarkers(id) {
|
function modelIdToMarkers(id) {
|
||||||
return {
|
return {
|
||||||
'anki-term-model': ['audio', 'expression', 'glossary', 'glossary-list', 'reading', 'sentence', 'tags', 'url'],
|
'anki-term-model': [
|
||||||
'anki-kanji-model': ['character', 'glossary', 'glossary-list', 'kunyomi', 'onyomi', 'url'],
|
'audio',
|
||||||
|
'expression',
|
||||||
|
'expression-furigana',
|
||||||
|
'glossary',
|
||||||
|
'glossary-list',
|
||||||
|
'reading',
|
||||||
|
'sentence',
|
||||||
|
'tags',
|
||||||
|
'url'
|
||||||
|
],
|
||||||
|
'anki-kanji-model': [
|
||||||
|
'character',
|
||||||
|
'glossary',
|
||||||
|
'glossary-list',
|
||||||
|
'kunyomi',
|
||||||
|
'onyomi',
|
||||||
|
'url'
|
||||||
|
],
|
||||||
}[id];
|
}[id];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ class Yomichan {
|
|||||||
break;
|
break;
|
||||||
case 'glossary-list':
|
case 'glossary-list':
|
||||||
if (definition.glossary) {
|
if (definition.glossary) {
|
||||||
value = '<ol>';
|
value = '<ol style="text-align: left;">';
|
||||||
for (const gloss of definition.glossary) {
|
for (const gloss of definition.glossary) {
|
||||||
value += `<li>${gloss}</li>`;
|
value += `<li>${gloss}</li>`;
|
||||||
}
|
}
|
||||||
|
@ -72,9 +72,15 @@
|
|||||||
<label for="anki-method">Connection method</label>
|
<label for="anki-method">Connection method</label>
|
||||||
<select class="form-control" id="anki-method">
|
<select class="form-control" id="anki-method">
|
||||||
<option value="disabled">Disabled (no auto flashcard creation)</option>
|
<option value="disabled">Disabled (no auto flashcard creation)</option>
|
||||||
<option value="ankiweb">AnkiWeb (requires an account on AnkiWeb)</option>
|
|
||||||
<option value="ankiconnect">AnkiConnect (requires the AnkiConnect plugin)</option>
|
<option value="ankiconnect">AnkiConnect (requires the AnkiConnect plugin)</option>
|
||||||
|
<option value="ankiweb">AnkiWeb (requires an account on AnkiWeb)</option>
|
||||||
</select>
|
</select>
|
||||||
|
<p class="help-block">
|
||||||
|
Yomichan features automatic flashcard creation for <a href="http://ankisrs.net/">Anki</a>, a free application
|
||||||
|
designed to help you retain knowledge. While the <a href="https://foosoft.net/projects/anki-connect/">AnkiConnect</a> plugin
|
||||||
|
offers the best experience, it is also possible to create flash cards through <a href="https://ankiweb.net/">AnkiWeb</a>,
|
||||||
|
provided you already have an account.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="anki-general">
|
<div id="anki-general">
|
||||||
@ -91,7 +97,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="anki-card-tags">Card tags</label>
|
<label for="anki-card-tags">Card tags (comma or space separated)</label>
|
||||||
<input type="text" id="anki-card-tags" class="form-control">
|
<input type="text" id="anki-card-tags" class="form-control">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user