aboutsummaryrefslogtreecommitdiff
path: root/mottovote/public/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'mottovote/public/script.js')
-rw-r--r--mottovote/public/script.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/mottovote/public/script.js b/mottovote/public/script.js
index 05ca940..2a9f602 100644
--- a/mottovote/public/script.js
+++ b/mottovote/public/script.js
@@ -8,17 +8,17 @@ async function get() {
for (const motto of mottos) {
const row = document.createElement("div");
const id = motto.id;
-
+
for (let i = 0; i < maxVotes; i++) {
const cb = document.createElement("input");
cb.type = "checkbox";
cb.value = id;
- cb.checked = motto.votes && motto.votes-- > 0
+ cb.checked = motto.votes && motto.votes-- > 0;
row.append(cb);
}
-
+
const text = document.createElement("span");
- text.textContent = `${motto.name} ${motto.description ? "-" : ""} ${motto.description}`
+ text.textContent = `${motto.name} ${motto.description ? "-" : ""} ${motto.description}`;
row.append(text);
window.vote.appendChild(row);
@@ -50,4 +50,4 @@ function addListeners() {
if (res === "ok") location.reload();
else alert(res);
});
-} \ No newline at end of file
+}