master
gtitov 3 years ago
parent 7c8a64e788
commit 1cd2d561a6

@ -7,6 +7,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<script src="main.js"></script> <script src="main.js"></script>
<style>
label {
margin-right: 10px /* interval after answer option */
}
footer {
text-align: center;
}
</style>
<title>Тестирование</title> <title>Тестирование</title>
</head> </head>
@ -27,8 +35,9 @@
<button id="end-quiz">Завершить тест для всех 😇</button> <button id="end-quiz">Завершить тест для всех 😇</button>
</main> </main>
<hr>
<footer> <footer>
<p>кафедра картографии и геоинформатики c 💖 для 👩‍🎓</p> <kbd>кафедра картографии и геоинформатики c 💖 для 👩‍🎓</kbd>
</footer> </footer>
</body> </body>

@ -65,7 +65,8 @@ document.addEventListener("DOMContentLoaded", function () {
document.getElementById("main").innerHTML = questions_html document.getElementById("main").innerHTML = questions_html
var button = document.createElement('button'); var button = document.createElement('button');
button.innerHTML = 'Сдать'; button.style.margin = "20px"
button.innerHTML = 'Сдать тест';
button.onclick = function () { button.onclick = function () {
// TODO: move this logic to the backend check_answers function // TODO: move this logic to the backend check_answers function
// Populate quiz with empty answers (if no answer presented in select there'll be no property "answer" what could not be resolved in API) // Populate quiz with empty answers (if no answer presented in select there'll be no property "answer" what could not be resolved in API)

Loading…
Cancel
Save