Make breaks between questions

This commit is contained in:
Vojtěch Káně
2021-04-25 14:09:08 +02:00
parent 5dae8a7ad7
commit 339af2ebca
5 changed files with 71 additions and 21 deletions

View File

@@ -127,6 +127,10 @@
}
}
if ('break' in data) {
questionSection.innerHTML = '';
}
if ('results' in data && data.results === true) {
window.location.pathname = "/results/" + encodeURIComponent(playerId);
}