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 %} -
+ + diff --git a/templates/live/interface.njk b/templates/live/interface.njk index ea497c4..43f0f0b 100644 --- a/templates/live/interface.njk +++ b/templates/live/interface.njk @@ -275,12 +275,12 @@
{% call forms.form() %}
-

+

- {{ forms.field('locationcode', 'Location Code', autocomplete = false, type='password') }} + {{ forms.field('locationcode', 'Location Code', autocomplete = false) }}
@@ -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') { @@ -629,6 +632,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});