aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-02-01 16:49:23 +0100
committerlonkaars <loek@pipeframe.xyz>2023-02-01 16:49:23 +0100
commit771c1582c630241400b3eda555c21e633468d10a (patch)
tree8e3d15adf028ebd58942d8508d9e80f2f19b76f6
parentc1e3683f87e865a43db9e0522f54bb0d2b763198 (diff)
added semicolons3.3.1
-rw-r--r--anki-card-template/card.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/anki-card-template/card.js b/anki-card-template/card.js
index 3b94d2d..2a058d3 100644
--- a/anki-card-template/card.js
+++ b/anki-card-template/card.js
@@ -191,7 +191,7 @@ function parseReading(nodes) {
if (i == 1) out += `<span class="extra-writings">`;
if (i > 0) out += `<span class="writing-separator"><span class="inner">\u3001</span></span>`;
var classes = ["writing"];
- if (i == 0) classes.push("first")
+ if (i == 0) classes.push("first");
out += `<span class="${classes.join(' ')}"><span class="inner">${writings[i].trim()}</span></span>`;
if (writings.length > 1 && i == writings.length - 1) out += `<span class="extra-count">+${writings.length - 1}</span></span>`;
}
@@ -317,7 +317,7 @@ HTMLElement.prototype.parse = function() {
this.classList.add("parsed");
if (nodes.reduce((current, n) => current + (n.type == "text" ? n.data.length : 0), 0) == 0)
this.classList.add("empty"); // if innerHTML only contains empty html (no 'user' text)
-}
+};
function layout() {
// set vertical layout on vertical displays (primarily mobile screens)