diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-04-14 20:36:00 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-04-14 20:36:00 -0700 |
commit | 5f74c473cef4564ad2040d9211f70b4f0ac048f1 (patch) | |
tree | fc1edf0dede7b783eb0de5b4eece24ba13e6ec43 /util | |
parent | ba3e0c65327bae982001d2d2f83ece2650ae3687 (diff) |
Switch to iframe
Diffstat (limited to 'util')
-rw-r--r-- | util/tmpl/defs.html | 22 | ||||
-rw-r--r-- | util/tmpl/term.html | 12 |
2 files changed, 25 insertions, 9 deletions
diff --git a/util/tmpl/defs.html b/util/tmpl/defs.html index 2fcc4ea9..ebbb7f82 100644 --- a/util/tmpl/defs.html +++ b/util/tmpl/defs.html @@ -1,6 +1,16 @@ -{{#each defs}} -<div class="yomichan-def"> - {{> term.html}} - {{#unless @last}}<br>{{/unless}} -</div> -{{/each}} +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <title></title> + <link rel="stylesheet" href="{{root}}/css/popup.css"> + </head> + <body> + {{#each defs}} + <div class="definition"> + {{> term.html}} + {{#unless @last}}<br>{{/unless}} + </div> + {{/each}} + </body> +</html> diff --git a/util/tmpl/term.html b/util/tmpl/term.html index 56854499..bd414f26 100644 --- a/util/tmpl/term.html +++ b/util/tmpl/term.html @@ -1,10 +1,16 @@ {{#if reading}} -<div class="yomichan-def-expression"><ruby>{{expression}}<rt>{{reading}}</rt></ruby></div> +<div class="expression"><ruby>{{expression}}<rt>{{reading}}</rt></ruby></div> {{else}} -<div class="yomichan-def-expression">{{expression}}</div> +<div class="expression">{{expression}}</div> {{/if}} -<div class="yomichan-def-glossary"> +<div class="rules"> + {{#if rules}} + {{rules}} + {{/if}} +</div> + +<div class="glossary"> <ol> {{#each glossary}} <li>{{.}}</li> |