@if (loading()) {
} @else if (error() && !quiz()) {
} @else if (submitted()) {
check_circle
Quiz Submitted!
Redirecting to dashboard...
} @else if (quiz() && currentQuestion()) {
@if (error()) {
error{{ error() }}
}
{{ currentQuestion().question }}
@for (option of currentQuestion().options; track option; let i = $index) {
}
@for (q of questions(); track q._id; let i = $index) {
}
@if (currentIndex() < questions().length - 1) {
} @else {
}
}
@if (showWarningModal() && currentWarning()) {
{{ currentWarning()!.isAutoSubmit ? 'block' : 'warning' }}
{{ currentWarning()!.title }}
{{ currentWarning()!.message }}
@if (!currentWarning()!.isAutoSubmit) {
@for (i of [1,2,3]; track i) {
}
{{ currentWarning()!.violationCount }}/{{ getMaxViolations() }} violations
}
@if (!currentWarning()!.isAutoSubmit) {
⚠️ Exiting fullscreen or switching tabs again will count as another violation.
} @else {
}
}