From 448f455186ee695ce0c70574db4fe2b431ad6c55 Mon Sep 17 00:00:00 2001 From: LarsVomMars Date: Thu, 21 Jan 2021 12:48:36 +0100 Subject: FIXERINIO --- poll/public/script.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'poll/public/script.js') 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}`); } -- cgit v1.2.3