yomichan/ext/bg/js/templates.js

76 lines
5.7 KiB
JavaScript
Raw Normal View History

2016-03-29 02:44:28 +00:00
(function() {
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
templates['defs.html'] = template({"1":function(container,depth0,helpers,partials,data) {
var stack1;
2016-04-15 03:36:00 +00:00
return " <div class=\"definition\">\n"
+ ((stack1 = container.invokePartial(partials["term.html"],depth0,{"name":"term.html","data":data,"indent":" ","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
2016-04-17 16:36:06 +00:00
+ " </div>\n";
2016-03-29 02:44:28 +00:00
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
2016-04-18 00:36:15 +00:00
var stack1, helper, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
2016-03-29 02:44:28 +00:00
2016-04-15 03:36:00 +00:00
return "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <title></title>\n <link rel=\"stylesheet\" href=\""
2016-04-18 00:36:15 +00:00
+ 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)))
2016-04-18 00:23:53 +00:00
+ "/css/popup.css\">\n </head>\n <body>\n <div class=\"dictionary\">\n <a href=\"javascript:selectDict('edict');\">単</a><a href=\"javascript:selectDict('enamdict')\">名</a><a href=\"javascript:selectDict('kanjidic');\">漢</a>\n </div>\n\n"
2016-04-15 03:36:00 +00:00
+ ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.defs : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
2016-04-18 00:36:15 +00:00
+ "\n <script src=\""
+ 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)))
+ "/js/popup.js\"></script>\n </body>\n</html>\n";
2016-03-29 02:44:28 +00:00
},"usePartial":true,"useData":true});
templates['term.html'] = template({"1":function(container,depth0,helpers,partials,data) {
2016-04-14 03:13:41 +00:00
var helper, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
2016-03-29 02:44:28 +00:00
2016-04-15 03:36:00 +00:00
return "<div class=\"expression\"><ruby>"
2016-04-14 03:13:41 +00:00
+ alias4(((helper = (helper = helpers.expression || (depth0 != null ? depth0.expression : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"expression","hash":{},"data":data}) : helper)))
+ "<rt>"
+ alias4(((helper = (helper = helpers.reading || (depth0 != null ? depth0.reading : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"reading","hash":{},"data":data}) : helper)))
+ "</rt></ruby></div>\n";
2016-04-14 01:55:31 +00:00
},"3":function(container,depth0,helpers,partials,data) {
2016-04-14 03:13:41 +00:00
var helper;
2016-04-15 03:36:00 +00:00
return "<div class=\"expression\">"
2016-04-14 03:13:41 +00:00
+ container.escapeExpression(((helper = (helper = helpers.expression || (depth0 != null ? depth0.expression : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : {},{"name":"expression","hash":{},"data":data}) : helper)))
+ "</div>\n";
},"5":function(container,depth0,helpers,partials,data) {
2016-04-17 05:54:19 +00:00
var stack1;
2016-04-16 05:33:13 +00:00
return "<div class=\"rules\">\n"
2016-04-17 05:54:19 +00:00
+ ((stack1 = helpers.each.call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.rules : depth0),{"name":"each","hash":{},"fn":container.program(6, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ "</div>\n";
2016-04-16 05:33:13 +00:00
},"6":function(container,depth0,helpers,partials,data) {
var stack1;
2016-04-15 03:36:00 +00:00
2016-04-17 05:54:19 +00:00
return " <span class=\"rule\">"
2016-04-16 05:33:13 +00:00
+ container.escapeExpression(container.lambda(depth0, depth0))
2016-04-17 05:54:19 +00:00
+ "</span> "
2016-04-16 18:41:33 +00:00
+ ((stack1 = helpers.unless.call(depth0 != null ? depth0 : {},(data && data.last),{"name":"unless","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ "\n";
2016-04-15 03:36:00 +00:00
},"7":function(container,depth0,helpers,partials,data) {
2016-04-16 18:41:33 +00:00
return "&laquo;";
2016-04-16 05:33:13 +00:00
},"9":function(container,depth0,helpers,partials,data) {
2016-04-16 18:41:33 +00:00
var stack1;
return "<div class=\"tags\">\n"
+ ((stack1 = helpers.each.call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.tags : depth0),{"name":"each","hash":{},"fn":container.program(10, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ "</div>\n";
},"10":function(container,depth0,helpers,partials,data) {
2016-04-17 05:54:19 +00:00
return " <span class=\"tag\">"
2016-04-16 18:41:33 +00:00
+ container.escapeExpression(container.lambda(depth0, depth0))
2016-04-17 05:54:19 +00:00
+ "</span>\n";
},"12":function(container,depth0,helpers,partials,data) {
2016-04-16 05:33:13 +00:00
return " <li><span>"
2016-04-14 01:55:31 +00:00
+ container.escapeExpression(container.lambda(depth0, depth0))
2016-04-16 05:33:13 +00:00
+ "</span></li>\n";
2016-03-29 02:44:28 +00:00
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
2016-04-14 03:13:41 +00:00
var stack1, alias1=depth0 != null ? depth0 : {};
2016-03-29 02:44:28 +00:00
2016-04-14 03:13:41 +00:00
return ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.reading : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data})) != null ? stack1 : "")
2016-04-15 03:36:00 +00:00
+ "\n"
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.rules : depth0),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
2016-04-16 18:41:33 +00:00
+ "\n"
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.tags : depth0),{"name":"if","hash":{},"fn":container.program(9, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
2016-04-15 03:36:00 +00:00
+ "\n<div class=\"glossary\">\n <ol>\n"
2016-04-17 05:54:19 +00:00
+ ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.glossary : depth0),{"name":"each","hash":{},"fn":container.program(12, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
2016-04-14 01:55:31 +00:00
+ " </ol>\n</div>\n";
2016-03-29 02:44:28 +00:00
},"useData":true});
})();