Adding dictionary switcher stubs
This commit is contained in:
parent
3a6d239c24
commit
be43981e25
@ -11,7 +11,7 @@ templates['defs.html'] = template({"1":function(container,depth0,helpers,partial
|
|||||||
|
|
||||||
return "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <title></title>\n <link rel=\"stylesheet\" href=\""
|
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(alias1,{"name":"root","hash":{},"data":data}) : helper)))
|
+ container.escapeExpression(((helper = (helper = helpers.root || (depth0 != null ? depth0.root : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(alias1,{"name":"root","hash":{},"data":data}) : helper)))
|
||||||
+ "/css/popup.css\">\n </head>\n <body>\n"
|
+ "/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"
|
||||||
+ ((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 : "")
|
+ ((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 : "")
|
||||||
+ " </body>\n</html>\n";
|
+ " </body>\n</html>\n";
|
||||||
},"usePartial":true,"useData":true});
|
},"usePartial":true,"useData":true});
|
||||||
|
@ -50,6 +50,26 @@ body {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dictionary {
|
||||||
|
position: fixed;
|
||||||
|
right: 0px;
|
||||||
|
bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dictionary a {
|
||||||
|
background-color: #333;
|
||||||
|
color: #eee;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 16px;
|
||||||
|
opacity: 0.75;
|
||||||
|
padding: 0.3em;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dictionary a:hover {
|
||||||
|
opacity: 1.0;
|
||||||
|
}
|
||||||
|
|
||||||
ol {
|
ol {
|
||||||
padding-left: 1.2em;
|
padding-left: 1.2em;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,10 @@
|
|||||||
<link rel="stylesheet" href="{{root}}/css/popup.css">
|
<link rel="stylesheet" href="{{root}}/css/popup.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div class="dictionary">
|
||||||
|
<a href="javascript:selectDict('edict');">単</a><a href="javascript:selectDict('enamdict')">名</a><a href="javascript:selectDict('kanjidic');">漢</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{#each defs}}
|
{{#each defs}}
|
||||||
<div class="definition">
|
<div class="definition">
|
||||||
{{> term.html}}
|
{{> term.html}}
|
||||||
|
Loading…
Reference in New Issue
Block a user