From 055174efd2955464b21c653bfa3ed889e9d03e69 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Wed, 19 Oct 2016 20:32:22 -0700 Subject: [PATCH] Options page TLC --- ext/bg/js/options-form.js | 21 +++++++++++++++++++-- ext/bg/js/yomichan.js | 2 +- ext/bg/options.html | 10 ++++++++-- 3 files changed, 28 insertions(+), 5 deletions(-) diff --git a/ext/bg/js/options-form.js b/ext/bg/js/options-form.js index fdaf059f..b4558a56 100644 --- a/ext/bg/js/options-form.js +++ b/ext/bg/js/options-form.js @@ -43,8 +43,25 @@ function modelIdToFieldOptKey(id) { function modelIdToMarkers(id) { return { - 'anki-term-model': ['audio', 'expression', 'glossary', 'glossary-list', 'reading', 'sentence', 'tags', 'url'], - 'anki-kanji-model': ['character', 'glossary', 'glossary-list', 'kunyomi', 'onyomi', 'url'], + 'anki-term-model': [ + 'audio', + 'expression', + 'expression-furigana', + 'glossary', + 'glossary-list', + 'reading', + 'sentence', + 'tags', + 'url' + ], + 'anki-kanji-model': [ + 'character', + 'glossary', + 'glossary-list', + 'kunyomi', + 'onyomi', + 'url' + ], }[id]; } diff --git a/ext/bg/js/yomichan.js b/ext/bg/js/yomichan.js index 4face6cd..0e39d3e8 100644 --- a/ext/bg/js/yomichan.js +++ b/ext/bg/js/yomichan.js @@ -169,7 +169,7 @@ class Yomichan { break; case 'glossary-list': if (definition.glossary) { - value = '
    '; + value = '
      '; for (const gloss of definition.glossary) { value += `
    1. ${gloss}
    2. `; } diff --git a/ext/bg/options.html b/ext/bg/options.html index 71e0a264..2b2e283b 100644 --- a/ext/bg/options.html +++ b/ext/bg/options.html @@ -72,9 +72,15 @@ +

      + Yomichan features automatic flashcard creation for Anki, a free application + designed to help you retain knowledge. While the AnkiConnect plugin + offers the best experience, it is also possible to create flash cards through AnkiWeb, + provided you already have an account. +

      @@ -91,7 +97,7 @@
      - +