Skip to content

Commit

Permalink
update words include frequency order decks also
Browse files Browse the repository at this point in the history
  • Loading branch information
krmanik committed Mar 19, 2023
1 parent 635297a commit 9f621db
Show file tree
Hide file tree
Showing 4 changed files with 422 additions and 402 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

.backup
.config
2 changes: 1 addition & 1 deletion HSK-3.0-words-list
18 changes: 18 additions & 0 deletions card templates/Card 2/front.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@
</script>

<script>
var switchIdList = ["text-sim", "text-trad"];
function initSwitchPrefs() {
for (var _id of switchIdList) {
var divId = _id.replace("text-", "char_");
if (Persistence.getItem("back" + _id) == "false") {
document.getElementById(divId).style.display = "none";
}
}
}

if (Persistence.isAvailable()) {
if (window.ankiPlatform == "desktop" || isInWebView()) {
initSwitchPrefs();
} else {
window.addEventListener("load", initSwitchPrefs, false);
}
}

if (Persistence.isAvailable()) {
if (Persistence.getItem("backtext-pinyin") == "true" && Persistence.getItem("backtext-zhuyin") == "false") {
document.querySelector(".question-sub-text").innerHTML = "pinyin";
Expand Down
Loading

0 comments on commit 9f621db

Please sign in to comment.