provide jquery for AnkiDroid

This commit is contained in:
Alexander Bocken 2021-04-29 17:27:01 +02:00
parent 4fdb8dfdf3
commit 139c5094e2
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8
2 changed files with 10 additions and 4 deletions

View File

@ -54,6 +54,7 @@
"media_files": [
"_KanjiStrokeOrders.ttf",
"_ipag.ttf",
"_jquery.min.js",
"googletts-000259de-bd9120f3-f9fb2b99-5b594d71-afba08b4.mp3",
"googletts-000b38c0-07604f42-7fcf7122-f2abcd2b-9bfaa229.mp3",
"googletts-00235dde-a829c4b6-46aef336-ddad46e1-39d8e969.mp3",
@ -3459,7 +3460,7 @@
"tags": [],
"tmpls": [
{
"afmt": "<div class=\"container\">\n<div class=\"card-content\">\n\n<div class=KompositaBack id=ToDot>{{Komposita}}</div>\n<div class=KanaBack>{{Komposita_Kana}}</div>\n<div class=MeaningBack>{{Komposita_Bedeutung}}</div>\n\n\n<div class=TonBack>{{Ton}}</div>\n<div class=ReadingBack> {{Lesung}} </div>\n\n\n</div>\n<div class=\"footer\">\n<div id=\"no\">\n{{Index}}\n</div><!-- index-->\n</div><!-- footer -->\n</div><!-- container -->\n\n<script>\nhighlightKanji();\n\nfunction highlightKanji() {\n\tvar t = document.getElementById('ToDot').innerHTML;\n\tvar kanji=\"{{Kanji}}\"\n\tvar p=t.replace(/{{Kanji}}/, '<span class=dotted_back>{{Kanji}}</span>');\n\tdocument.getElementById('ToDot').innerHTML=p;\n\tconsole.log(\"Komposita:\" + p);\n\tconsole.log(\"Kanji:\" + kanji);\n}\n</script>",
"afmt": "<script src=\"_jquery.min.js\" type=\"text/javascript\"></script>\n<div class=\"container\">\n<div class=\"card-content\">\n\n<div class=KompositaBack id=ToDot>{{Komposita}}</div>\n<div class=KanaBack>{{Komposita_Kana}}</div>\n<div class=MeaningBack>{{Komposita_Bedeutung}}</div>\n\n\n<div class=TonBack>{{Ton}}</div>\n<div class=ReadingBack> {{Lesung}} </div>\n\n\n</div>\n<div class=\"footer\">\n<div id=\"no\">\n{{Index}}\n</div><!-- index-->\n</div><!-- footer -->\n</div><!-- container -->\n\n<script>\nhighlightKanji();\n\nfunction highlightKanji() {\n\tvar t = document.getElementById('ToDot').innerHTML;\n\tvar kanji=\"{{Kanji}}\"\n\tvar p=t.replace(/{{Kanji}}/, '<span class=dotted_back>{{Kanji}}</span>');\n\tdocument.getElementById('ToDot').innerHTML=p;\n\tconsole.log(\"Komposita:\" + p);\n\tconsole.log(\"Kanji:\" + kanji);\n}\n</script>",
"bafmt": "",
"bfont": "",
"bqfmt": "",
@ -3467,10 +3468,10 @@
"did": null,
"name": "Recognition",
"ord": 0,
"qfmt": "<html lang=\"jp\">\n<div class=\"container\">\n<div class=\"card-content\">\n<div class=\"parent\" style=\"white-space:nowrap;\">\n <span href=\"#\" class=resize id=Komposita>{{Komposita}}</span>\n</div>\n\n</div>\n\n<div class=\"footer\">\n<div id=\"no\">\n{{Index}}\n</div><!-- index-->\n\n</div><!-- footer -->\n</div><!-- container -->\n</html>\n<script>\nresize();\nhighlightKanji();\n$(document).ready(function() { \n resize();\n});\n\nvar rtime;\nvar timeout = false;\nvar delta = 100;\n$(window).resize(function() {\n rtime = new Date();\n if (timeout === false) {\n timeout = true;\n setTimeout(resizeend, delta);\n }\n});\n\nfunction resizeend() {\n if (new Date() - rtime < delta) {\n setTimeout(resizeend, delta);\n } else {\n timeout = false; \n resize();\n } \n}\nfunction resize() { \n\t$('.resize').each(function(i, obj) {\n\t\t$(this).css('font-size', '8em');\n\n\t\twhile ($(this).width() > $(this).parent().width()) {\n\t\t\t$(this).css('font-size', (parseInt($(this).css('font-size')) - 1) + \"px\");\n\t\t}\n\t});\n}\n\nfunction highlightKanji() {\n\tvar t = document.getElementById('Komposita').innerHTML;\n\tvar kanji=\"{{Kanji}}\"\n\tvar p=t.replace(/{{Kanji}}/, '<span class=dotted_front>{{Kanji}}</span>');\n\tdocument.getElementById('Komposita').innerHTML=p;\n\tconsole.log(\"Komposita:\" + p);\n\tconsole.log(\"Kanji:\" + kanji);\n}\n</script>"
"qfmt": "<script src=\"_jquery.min.js\" type=\"text/javascript\"></script>\n<div class=\"container\">\n<div class=\"card-content\">\n<div class=\"parent\" style=\"white-space:nowrap;\">\n <span href=\"#\" class=resize id=Komposita>{{Komposita}}</span>\n</div>\n\n</div>\n\n<div class=\"footer\">\n<div id=\"no\">\n{{Index}}\n</div><!-- index-->\n\n</div><!-- footer -->\n</div><!-- container -->\n</html>\n<script>\nresize();\nhighlightKanji();\n$(document).ready(function() { \n resize();\n});\n\nvar rtime;\nvar timeout = false;\nvar delta = 100;\n$(window).resize(function() {\n rtime = new Date();\n if (timeout === false) {\n timeout = true;\n setTimeout(resizeend, delta);\n }\n});\n\nfunction resizeend() {\n if (new Date() - rtime < delta) {\n setTimeout(resizeend, delta);\n } else {\n timeout = false; \n resize();\n } \n}\nfunction resize() { \n\t$('.resize').each(function(i, obj) {\n\t\t$(this).css('font-size', '8em');\n\n\t\twhile ($(this).width() > $(this).parent().width()) {\n\t\t\t$(this).css('font-size', (parseInt($(this).css('font-size')) - 1) + \"px\");\n\t\t}\n\t});\n}\n\nfunction highlightKanji() {\n\tvar t = document.getElementById('Komposita').innerHTML;\n\tvar kanji=\"{{Kanji}}\"\n\tvar p=t.replace(/{{Kanji}}/, '<span class=dotted_front>{{Kanji}}</span>');\n\tdocument.getElementById('Komposita').innerHTML=p;\n\tconsole.log(\"Komposita:\" + p);\n\tconsole.log(\"Kanji:\" + kanji);\n}\n</script>"
},
{
"afmt": "<div class=\"container\">\n<div class=\"card-content\">\n\n<div class=KompositaBack id=ToDot>{{Komposita}}</div>\n<div class=KanaBack>{{Komposita_Kana}}</div>\n<div class=MeaningBack>{{Komposita_Bedeutung}}</div>\n\n\n<div class=TonBack>{{Ton}}</div>\n<div class=ReadingBack> {{Lesung}} </div>\n\n\n</div>\n<div class=\"footer\">\n<div id=\"no\">\n{{Index}}\n</div><!-- index-->\n</div><!-- footer -->\n</div><!-- container -->\n\n<script>\nhighlightKanji();\n\nfunction highlightKanji() {\n\tvar t = document.getElementById('ToDot').innerHTML;\n\tvar kanji=\"{{Kanji}}\"\n\tvar p=t.replace(/{{Kanji}}/, '<span class=dotted_back>{{Kanji}}</span>');\n\tdocument.getElementById('ToDot').innerHTML=p;\n\tconsole.log(\"Komposita:\" + p);\n\tconsole.log(\"Kanji:\" + kanji);\n}\n</script>",
"afmt": "<script src=\"_jquery.min.js\" type=\"text/javascript\"></script>\n<div class=\"container\">\n<div class=\"card-content\">\n\n<div class=KompositaBack id=ToDot>{{Komposita}}</div>\n<div class=KanaBack>{{Komposita_Kana}}</div>\n<div class=MeaningBack>{{Komposita_Bedeutung}}</div>\n\n\n<div class=TonBack>{{Ton}}</div>\n<div class=ReadingBack> {{Lesung}} </div>\n\n\n</div>\n<div class=\"footer\">\n<div id=\"no\">\n{{Index}}\n</div><!-- index-->\n</div><!-- footer -->\n</div><!-- container -->\n\n<script>\nhighlightKanji();\n\nfunction highlightKanji() {\n\tvar t = document.getElementById('ToDot').innerHTML;\n\tvar kanji=\"{{Kanji}}\"\n\tvar p=t.replace(/{{Kanji}}/, '<span class=dotted_back>{{Kanji}}</span>');\n\tdocument.getElementById('ToDot').innerHTML=p;\n\tconsole.log(\"Komposita:\" + p);\n\tconsole.log(\"Kanji:\" + kanji);\n}\n</script>",
"bafmt": "",
"bfont": "",
"bqfmt": "",
@ -3478,7 +3479,7 @@
"did": null,
"name": "Recall",
"ord": 1,
"qfmt": "<html lang=\"de\">\n<div class=\"container\">\n<div class=\"card-content\">\n<div class=MeaningFront lang=\"de\"> {{Komposita_Bedeutung}}</div>\n<div id=\"Kanji\" class=KanjiHint>{{Kanji}}</div>\n\n</div>\n\n<div class=\"footer\">\n<div id=\"no\">\n{{Index}}\n</div><!-- index-->\n\n</div><!-- footer -->\n</div><!-- container -->\n</html>\n\n\n"
"qfmt": "<script src=\"_jquery.min.js\" type=\"text/javascript\"></script>\n<html lang=\"de\">\n<div class=\"container\">\n<div class=\"card-content\">\n<div class=MeaningFront lang=\"de\"> {{Komposita_Bedeutung}}</div>\n<div id=\"Kanji\" class=KanjiHint>{{Kanji}}</div>\n\n</div>\n\n<div class=\"footer\">\n<div id=\"no\">\n{{Index}}\n</div><!-- index-->\n\n</div><!-- footer -->\n</div><!-- container -->\n</html>\n\n\n"
}
],
"type": 0,

5
media/_jquery.min.js vendored Normal file

File diff suppressed because one or more lines are too long