From 0a0b99d4125a4af81cb00854047cfbdfaac53a4c Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 19 Jan 2023 22:25:15 +0100 Subject: add semicolons and update template --- anki-card-template/card.js | 4 ++-- anki-card-template/template.m4 | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/anki-card-template/card.js b/anki-card-template/card.js index 03cd1ae..7ec981d 100644 --- a/anki-card-template/card.js +++ b/anki-card-template/card.js @@ -45,7 +45,7 @@ HTMLElement.prototype.parse = function() { } if (this.classList.contains("parse-brackets")) { - if (i == 0) { out += `` } + if (i == 0) { out += ``; } if (input[i] == '\u3010') { out += `${input[i]}`; continue; } if (input[i] == '\u3011') { out += `${input[i]}`; continue; } } @@ -58,7 +58,7 @@ HTMLElement.prototype.parse = function() { this.innerHTML = out; this.classList.add("parsed"); -} +}; function layout() { // set vertical layout on vertical displays (primarily mobile screens) diff --git a/anki-card-template/template.m4 b/anki-card-template/template.m4 index 9168c52..477e797 100644 --- a/anki-card-template/template.m4 +++ b/anki-card-template/template.m4 @@ -1,12 +1,12 @@
-{{Complete sentence}} +{{Complete sentence}}

-{{Target word reading}} -{{Target word translation}} - +{{Target word reading}} +{{Target word translation}} +
-- cgit v1.2.3