-
Notifications
You must be signed in to change notification settings - Fork 0
/
HtmlConfigurer.js
47 lines (38 loc) · 929 Bytes
/
HtmlConfigurer.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
class HtmlConfigurer {
hideEverything() {
this.hide('start-quiz')
this.hide('statistics')
this.hide('score')
this.hide('question-navigation')
this.hide('question-answer')
this.hide('next-question-button')
this.hide('finish-test')
}
showStartQuiz() {
this.show('start-quiz')
}
showStatistics() {
this.show('statistics')
}
showScore() {
this.show('score')
}
showQuestionNavigation() {
this.show('question-navigation')
}
showQuestionAnswer() {
this.show('question-answer')
}
showNextQuestionButton() {
this.show('next-question-button')
}
showFinishTest() {
this.show('finish-test')
}
show(id) {
document.getElementById(id).style.display = "block"
}
hide(id) {
document.getElementById(id).style.display = "none"
}
}