aboutsummaryrefslogtreecommitdiff
path: root/poll/public/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'poll/public/script.js')
-rw-r--r--poll/public/script.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/poll/public/script.js b/poll/public/script.js
index dc46578..cdffa17 100644
--- a/poll/public/script.js
+++ b/poll/public/script.js
@@ -55,6 +55,12 @@ fetch(`/poll/api/question/${qid}?type=${type}`)
} else getNext(); // Resets
});
+fetch(`api/questions/${type}`)
+ .then(response => response.json())
+ .then(response => {
+ // TODO: PROGRESS POGGERS
+ });
+
function getNext(q = 0) {
window.location.assign(`/poll/?qid=${q}&type=${type}`);
}