Loading countries...
+ {:else if currentQuestion}
+
+
+
+
+
+ {#if showResult}
+
+ {#if selectedAnswer === correctAnswer}
+
+ Correct!
+
+ {:else}
+
+
+ Wrong!
+
+ The correct answer is: {getCapitalName(currentQuestion.correct)}.
+
+ {#if showResultCountryInfo}
+
+ {currentQuestion.correct.meta.description}
+
+ {/if}
+
+
+ {/if}
+
+ {/if}
+
+
+
+
+
})
+
+ {getCountryName(currentQuestion.correct)}
+ {#if currentQuestion.correct?.meta?.description}
+
+ {#if showCountryInfo}
+
+ {currentQuestion.correct.meta.description}
+
+ {/if}
+ {/if}
+
+
+
+
+
+ {#each currentQuestion.options as option, index}
+
+ {/each}
+
+
+ {#if gameState === "question"}
+
+ {:else if (!autoAdvance && gameState === "answered") || (autoAdvance && gameState === "answered" && sessionRestoredFromReload)}
+
+ {/if}
+
+
+ {#if autoAdvance && gameState === "answered" && timerProgress > 0 && !sessionRestoredFromReload}
+
+
+
Next question in {Math.ceil(
+ (timerDuration - (timerProgress / 100) * timerDuration) /
+ 1000,
+ )}s
+
+ {/if}
+
+ {/if}
+
+