diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-04-24 20:04:14 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-04-24 20:04:14 -0700 |
commit | 62c2120286ddc39110b8ab01c4248ab5a8604b66 (patch) | |
tree | 788b47bd1b554c70ac718a77731da6039601500b /ext | |
parent | 46a2f0e87b8467cb5efa1924a977bce2dbd7c819 (diff) |
Use KanjiStrokeOrders
Diffstat (limited to 'ext')
-rw-r--r-- | ext/bg/js/templates.js | 8 | ||||
-rw-r--r-- | ext/fg/css/frame.css | 5 | ||||
-rw-r--r-- | ext/manifest.json | 13 |
3 files changed, 17 insertions, 9 deletions
diff --git a/ext/bg/js/templates.js b/ext/bg/js/templates.js index f3b1ba87..08708535 100644 --- a/ext/bg/js/templates.js +++ b/ext/bg/js/templates.js @@ -8,10 +8,12 @@ templates['footer.html'] = template({"compiler":[7,">= 4.0.0"],"main":function(c + "/js/frame.js\"></script>\n </body>\n</html>\n"; },"useData":true}); templates['header.html'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { - var helper; + var helper, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression; - return "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <title></title>\n <link rel=\"stylesheet\" href=\"" - + container.escapeExpression(((helper = (helper = helpers.root || (depth0 != null ? depth0.root : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : {},{"name":"root","hash":{},"data":data}) : helper))) + return "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <title></title>\n <style>\n @font-face {\n font-family: \"KanjiStrokeOrders\";\n src: url(\"" + + alias4(((helper = (helper = helpers.root || (depth0 != null ? depth0.root : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"root","hash":{},"data":data}) : helper))) + + "/ttf/kanji-stroke-orders.ttf\");\n }\n </style>\n <link rel=\"stylesheet\" href=\"" + + alias4(((helper = (helper = helpers.root || (depth0 != null ? depth0.root : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"root","hash":{},"data":data}) : helper))) + "/css/frame.css\">\n </head>\n <body>\n"; },"useData":true}); templates['kanji.html'] = template({"1":function(container,depth0,helpers,partials,data) { diff --git a/ext/fg/css/frame.css b/ext/fg/css/frame.css index 6341beb6..ace8aae1 100644 --- a/ext/fg/css/frame.css +++ b/ext/fg/css/frame.css @@ -46,8 +46,9 @@ body { .kanji { background-color: #eee; display: inline-block; - font-size: 82px; - line-height: 82px; + font-family: "KanjiStrokeOrders"; + font-size: 140px; + line-height: 140px; vertical-align: top; } diff --git a/ext/manifest.json b/ext/manifest.json index 639ad921..0fe4139a 100644 --- a/ext/manifest.json +++ b/ext/manifest.json @@ -17,10 +17,15 @@ } }, - "background": {"page": "bg/background.html"}, - "options_page": "bg/options.html", - "permissions": ["storage"], - "web_accessible_resources": ["fg/css/frame.css", "fg/js/frame.js"], + "background": {"page": "bg/background.html"}, + "options_page": "bg/options.html", + "permissions": ["storage"], + + "web_accessible_resources": [ + "fg/css/frame.css", + "fg/js/frame.js", + "fg/ttf/kanji-stroke-orders.ttf" + ], "content_scripts": [{ "matches": ["*://*/*"], |