From 03e89c17f143db71533129b8dce4ff1c8fc8701c Mon Sep 17 00:00:00 2001 From: Joshua Raj Date: Thu, 13 Mar 2025 23:08:55 +0530 Subject: [PATCH 1/3] the location code now vanishes after submitting --- templates/live/interface.njk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/live/interface.njk b/templates/live/interface.njk index ea497c4..8ff3c80 100644 --- a/templates/live/interface.njk +++ b/templates/live/interface.njk @@ -280,7 +280,7 @@
- {{ forms.field('locationcode', 'Location Code', autocomplete = false, type='password') }} + {{ forms.field('locationcode', 'Location Code', autocomplete = false) }}
@@ -629,6 +629,7 @@ async function submit() { const data = getData(); console.log(data) + document.getElementById('locationcode').value = ''; try { console.log(data.locationcode.trim()); const response = await axios.post('/live/submit', {state: state, answer: state === 'location-code'? data.locationcode.trim() : ((state === 'riddle-question') ? data.riddleanswer : "blablabla"), questionNo: attempted}); From f5389707188b5ceeff5ca30e02d80ad4e1a71fd6 Mon Sep 17 00:00:00 2001 From: Joshua Raj Date: Thu, 13 Mar 2025 23:31:20 +0530 Subject: [PATCH 2/3] the question number now appears on the riddle question aswell --- templates/live/interface.njk | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/live/interface.njk b/templates/live/interface.njk index 8ff3c80..43f0f0b 100644 --- a/templates/live/interface.njk +++ b/templates/live/interface.njk @@ -275,7 +275,7 @@
{% call forms.form() %}
-

+

@@ -291,7 +291,7 @@
{% call forms.form() %}
-

+

{# {{ forms.field('riddleanswer','Answer') }} #} @@ -510,7 +510,10 @@ // locationCode.style.display = state === 'location-code' ? 'block' : 'none'; // riddleForm.style.display = ['riddle-question', 'riddle-timeout'].find((e) => e === state) ? 'block' : 'none'; - document.getElementById('question-title').innerHTML = 'Question #' + (attempted + 1); + let titles = document.getElementsByClassName('question-title'); + for (let i = 0; i < titles.length; i++) { + titles[i].innerHTML = 'Question #' + (attempted + 1); + } messageBox.innerHTML = ''; messageCover.style.display = 'none'; if (state === 'completed') { From 8cd896f72dc312c72e9499fa05fa7fa9910eaa2b Mon Sep 17 00:00:00 2001 From: Joshua Raj Date: Fri, 14 Mar 2025 00:36:49 +0530 Subject: [PATCH 3/3] the footer on hanburger finally works!!! --- assets/styles/mask.scss | 17 +++++++++--- templates/_base.njk | 57 +++++++++++++++++++++++------------------ 2 files changed, 45 insertions(+), 29 deletions(-) diff --git a/assets/styles/mask.scss b/assets/styles/mask.scss index 858ed24..ba31509 100644 --- a/assets/styles/mask.scss +++ b/assets/styles/mask.scss @@ -524,12 +524,21 @@ span.navbar-line { display: none; } - .footer-open { - position: absolute; + .fake-footer, .fake-footer-open { + position: fixed; bottom: 0; + bottom: 0; + left: 0; + background-color: var(--red); + transition: 0.3s; + height: 70px; + width: 100%; + display: none; + justify-content: center; + z-index: 30; } - .container-open { - margin-bottom: 70px; + .fake-footer-open { + display: flex; } } \ No newline at end of file diff --git a/templates/_base.njk b/templates/_base.njk index 0a4883a..cfabc67 100644 --- a/templates/_base.njk +++ b/templates/_base.njk @@ -47,7 +47,7 @@ {#
#} -
+
{% block navbar %} - - {% endblock %}
{% block pagecontent %} @@ -132,10 +112,7 @@ {% endblock %}
{% block footer %} -
+ +