Add full FSA mode (resolves #3)

This commit is contained in:
2021-01-23 02:21:37 +01:00
parent 2ef91956b4
commit c19a7941fa
4 changed files with 124 additions and 43 deletions

View File

@ -6,6 +6,7 @@ const defaultState = {
questions: [],
responses: null,
currentQuestion: 0,
waitNextQuestion: false,
success: false,
submitTry: 0,
submitTries: 1,
@ -15,6 +16,7 @@ const defaultState = {
questionStartTotalTimer: 0,
totalTimer: 0,
totalInterval: null,
fsaTeamCountTroll: 0
}
var state
@ -88,6 +90,13 @@ function applyRuleSettingsFromForm() {
}
function formatTime(seconds) {
return (seconds > 60)
? Math.floor(seconds / 60) + ':' + (('0' + (seconds % 60)).slice(-2))
: seconds + 's'
}
function changeView(view) {
for (el of document.querySelectorAll('.view'))