diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-02-01 16:49:23 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-02-01 16:49:23 +0100 |
commit | 771c1582c630241400b3eda555c21e633468d10a (patch) | |
tree | 8e3d15adf028ebd58942d8508d9e80f2f19b76f6 | |
parent | c1e3683f87e865a43db9e0522f54bb0d2b763198 (diff) |
added semicolons3.3.1
-rw-r--r-- | anki-card-template/card.js | 4 |
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) |