♻️ change questions check ui

master
gtitov 3 years ago
parent 538b9b0e6f
commit 11cb3ac3ed

@ -42,9 +42,7 @@
</p>
<button id="end-quiz">Завершить тест для всех 😇</button>
<br>
<form>
<button formaction="/check_questions">Проверить вопросы 🧐</button>
</form>
<button id="check-questions">Проверить вопросы 🧐</button>
</main>
<hr>

@ -132,4 +132,10 @@ document.addEventListener("DOMContentLoaded", function () {
.then(r => r.text())
.then(text => window.alert(text))
})
document.getElementById("check-questions").addEventListener("click", function() {
fetch('/check_questions')
.then(r => r.text())
.then(text => window.alert(text))
})
})
Loading…
Cancel
Save