wip
This commit is contained in:
parent
b1950cf47e
commit
395af352f0
@ -302,7 +302,7 @@ templates['kanji.html'] = template({"1":function(container,depth0,helpers,partia
|
|||||||
|
|
||||||
return " <a href=\"#\" title=\"Add Kanji\" class=\"action-add-note pending disabled\" data-mode=\"kanji\" data-index=\""
|
return " <a href=\"#\" title=\"Add Kanji\" class=\"action-add-note pending disabled\" data-mode=\"kanji\" data-index=\""
|
||||||
+ container.escapeExpression(((helper = (helper = helpers.index || (data && data.index)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : {},{"name":"index","hash":{},"data":data}) : helper)))
|
+ container.escapeExpression(((helper = (helper = helpers.index || (data && data.index)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : {},{"name":"index","hash":{},"data":data}) : helper)))
|
||||||
+ "\"><img src=\"img/add_kanji.png\"></a>\n";
|
+ "\"><img src=\"/fg/img/add_kanji.png\"></a>\n";
|
||||||
},"4":function(container,depth0,helpers,partials,data) {
|
},"4":function(container,depth0,helpers,partials,data) {
|
||||||
var stack1;
|
var stack1;
|
||||||
|
|
||||||
@ -362,7 +362,7 @@ templates['kanji.html'] = template({"1":function(container,depth0,helpers,partia
|
|||||||
},"18":function(container,depth0,helpers,partials,data) {
|
},"18":function(container,depth0,helpers,partials,data) {
|
||||||
return "<hr>";
|
return "<hr>";
|
||||||
},"20":function(container,depth0,helpers,partials,data) {
|
},"20":function(container,depth0,helpers,partials,data) {
|
||||||
return " <p>No results found</p>\n";
|
return " <p>No results found.</p>\n";
|
||||||
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data,blockParams,depths) {
|
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data,blockParams,depths) {
|
||||||
var stack1;
|
var stack1;
|
||||||
|
|
||||||
@ -459,15 +459,15 @@ templates['terms.html'] = template({"1":function(container,depth0,helpers,partia
|
|||||||
|
|
||||||
return " <a href=\"#\" title=\"Add term as expression\" class=\"action-add-note pending disabled\" data-mode=\"term_kanji\" data-index=\""
|
return " <a href=\"#\" title=\"Add term as expression\" class=\"action-add-note pending disabled\" data-mode=\"term_kanji\" data-index=\""
|
||||||
+ alias4(((helper = (helper = helpers.index || (data && data.index)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"index","hash":{},"data":data}) : helper)))
|
+ alias4(((helper = (helper = helpers.index || (data && data.index)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"index","hash":{},"data":data}) : helper)))
|
||||||
+ "\"><img src=\"img/add_term_kanji.png\"></a>\n <a href=\"#\" title=\"Add term as reading\" class=\"action-add-note pending disabled\" data-mode=\"term_kana\" data-index=\""
|
+ "\"><img src=\"/fg/img/add_term_kanji.png\"></a>\n <a href=\"#\" title=\"Add term as reading\" class=\"action-add-note pending disabled\" data-mode=\"term_kana\" data-index=\""
|
||||||
+ alias4(((helper = (helper = helpers.index || (data && data.index)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"index","hash":{},"data":data}) : helper)))
|
+ alias4(((helper = (helper = helpers.index || (data && data.index)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"index","hash":{},"data":data}) : helper)))
|
||||||
+ "\"><img src=\"img/add_term_kana.png\"></a>\n";
|
+ "\"><img src=\"/fg/img/add_term_kana.png\"></a>\n";
|
||||||
},"15":function(container,depth0,helpers,partials,data) {
|
},"15":function(container,depth0,helpers,partials,data) {
|
||||||
var helper;
|
var helper;
|
||||||
|
|
||||||
return " <a href=\"#\" title=\"Play audio\" class=\"action-play-audio\" data-index=\""
|
return " <a href=\"#\" title=\"Play audio\" class=\"action-play-audio\" data-index=\""
|
||||||
+ container.escapeExpression(((helper = (helper = helpers.index || (data && data.index)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : {},{"name":"index","hash":{},"data":data}) : helper)))
|
+ container.escapeExpression(((helper = (helper = helpers.index || (data && data.index)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : {},{"name":"index","hash":{},"data":data}) : helper)))
|
||||||
+ "\"><img src=\"img/play_audio.png\"></a>\n";
|
+ "\"><img src=\"/fg/img/play_audio.png\"></a>\n";
|
||||||
},"17":function(container,depth0,helpers,partials,data) {
|
},"17":function(container,depth0,helpers,partials,data) {
|
||||||
var stack1, helper, options, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", buffer =
|
var stack1, helper, options, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", buffer =
|
||||||
" <div class=\"expression\"><ruby>";
|
" <div class=\"expression\"><ruby>";
|
||||||
@ -542,7 +542,7 @@ templates['terms.html'] = template({"1":function(container,depth0,helpers,partia
|
|||||||
},"36":function(container,depth0,helpers,partials,data) {
|
},"36":function(container,depth0,helpers,partials,data) {
|
||||||
return "<hr>";
|
return "<hr>";
|
||||||
},"38":function(container,depth0,helpers,partials,data) {
|
},"38":function(container,depth0,helpers,partials,data) {
|
||||||
return " <p>No results found</p>\n";
|
return " <p>No results found.</p>\n";
|
||||||
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data,blockParams,depths) {
|
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data,blockParams,depths) {
|
||||||
var stack1;
|
var stack1;
|
||||||
|
|
||||||
|
@ -18,6 +18,10 @@
|
|||||||
</form>
|
</form>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<div id="spinner">
|
||||||
|
<img src="img/spinner.gif">
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="content"></div>
|
<div id="content"></div>
|
||||||
</div>
|
</div>
|
||||||
<script src="../lib/jquery-3.1.1.min.js"></script>
|
<script src="../lib/jquery-3.1.1.min.js"></script>
|
||||||
|
@ -41,7 +41,7 @@ hr {
|
|||||||
margin-bottom: 0.8em;
|
margin-bottom: 0.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spinner {
|
#spinner {
|
||||||
bottom: 5px;
|
bottom: 5px;
|
||||||
display: none;
|
display: none;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="spinner">
|
<div id="spinner">
|
||||||
<img src="img/spinner.gif">
|
<img src="img/spinner.gif">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ class Frame {
|
|||||||
const sequence = ++this.sequence;
|
const sequence = ++this.sequence;
|
||||||
const params = {
|
const params = {
|
||||||
definitions,
|
definitions,
|
||||||
addable: options.ankiMethod !== 'disabled'
|
addable: options.anki.enabled
|
||||||
};
|
};
|
||||||
|
|
||||||
definitions.forEach(definition => {
|
definitions.forEach(definition => {
|
||||||
@ -165,7 +165,7 @@ class Frame {
|
|||||||
}
|
}
|
||||||
|
|
||||||
showSpinner(show) {
|
showSpinner(show) {
|
||||||
const spinner = $('.spinner');
|
const spinner = $('#spinner');
|
||||||
if (show) {
|
if (show) {
|
||||||
spinner.show();
|
spinner.show();
|
||||||
} else {
|
} else {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<p>
|
<p>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
{{#if addable}}
|
{{#if addable}}
|
||||||
<a href="#" title="Add Kanji" class="action-add-note pending disabled" data-mode="kanji" data-index="{{@index}}"><img src="img/add_kanji.png"></a>
|
<a href="#" title="Add Kanji" class="action-add-note pending disabled" data-mode="kanji" data-index="{{@index}}"><img src="/fg/img/add_kanji.png"></a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -55,5 +55,5 @@
|
|||||||
{{> kanji addable=../addable root=../root}}
|
{{> kanji addable=../addable root=../root}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<p>No results found</p>
|
<p>No results found.</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -21,11 +21,11 @@
|
|||||||
<p>
|
<p>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
{{#if addable}}
|
{{#if addable}}
|
||||||
<a href="#" title="Add term as expression" class="action-add-note pending disabled" data-mode="term_kanji" data-index="{{@index}}"><img src="img/add_term_kanji.png"></a>
|
<a href="#" title="Add term as expression" class="action-add-note pending disabled" data-mode="term_kanji" data-index="{{@index}}"><img src="/fg/img/add_term_kanji.png"></a>
|
||||||
<a href="#" title="Add term as reading" class="action-add-note pending disabled" data-mode="term_kana" data-index="{{@index}}"><img src="img/add_term_kana.png"></a>
|
<a href="#" title="Add term as reading" class="action-add-note pending disabled" data-mode="term_kana" data-index="{{@index}}"><img src="/fg/img/add_term_kana.png"></a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if playback}}
|
{{#if playback}}
|
||||||
<a href="#" title="Play audio" class="action-play-audio" data-index="{{@index}}"><img src="img/play_audio.png"></a>
|
<a href="#" title="Play audio" class="action-play-audio" data-index="{{@index}}"><img src="/fg/img/play_audio.png"></a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -67,5 +67,5 @@
|
|||||||
{{> term grouped=../grouped addable=../addable playback=../playback}}
|
{{> term grouped=../grouped addable=../addable playback=../playback}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<p>No results found</p>
|
<p>No results found.</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
Loading…
Reference in New Issue
Block a user