From 771c1582c630241400b3eda555c21e633468d10a Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 1 Feb 2023 16:49:23 +0100 Subject: added semicolons --- anki-card-template/card.js | 4 ++-- 1 file 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 += ``; if (i > 0) out += `\u3001`; var classes = ["writing"]; - if (i == 0) classes.push("first") + if (i == 0) classes.push("first"); out += `${writings[i].trim()}`; if (writings.length > 1 && i == writings.length - 1) out += `+${writings.length - 1}`; } @@ -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) -- cgit v1.2.3