diff --git a/frontend/src/lib/Spinner.svelte b/frontend/src/lib/Spinner.svelte index 27bb9af..1a74b21 100644 --- a/frontend/src/lib/Spinner.svelte +++ b/frontend/src/lib/Spinner.svelte @@ -3,8 +3,11 @@ - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at https://mozilla.org/MPL/2.0/. --> + - + { let res; + loading = true; if (captcha_enabled && captcha_selected) { res = await fetch( `/api/v1/quiz/start/${id}?captcha_enabled=True&game_mode=${selected_game_mode}`, @@ -80,19 +83,6 @@
-
{ - selected_game_mode = 'normal'; - }} - > -

Normal

-

- Questions, images and answers will be shown on both admins screen and on the - screen of the players -

-
-

Kahoot!-Like [EARLY BETA]

+

Normal

Question and answer will only be shown on admins screen, like Kahoot!. The players will only have colored buttons with symbols matching these on the screen of the admin.

+
{ + selected_game_mode = 'normal'; + }} + > +

Old-School

+

+ Questions and images will be shown on both admins screen and on the screen of + the players +

+
diff --git a/frontend/src/lib/play/question.svelte b/frontend/src/lib/play/question.svelte index be8eac3..287cb5c 100644 --- a/frontend/src/lib/play/question.svelte +++ b/frontend/src/lib/play/question.svelte @@ -96,7 +96,7 @@
-

+

{question.question}

@@ -115,10 +115,10 @@ {#if timer_res !== '0'} {#if question.type === QuizQuestionType.ABCD} {#if game_mode === 'normal'} -
+
{#each question.answers as answer} {:else} -
+
{#each solution.answers as answer} {#if answer.right} {:else} diff --git a/frontend/src/routes/play/+page.svelte b/frontend/src/routes/play/+page.svelte index 4581b69..9f5e37b 100644 --- a/frontend/src/routes/play/+page.svelte +++ b/frontend/src/routes/play/+page.svelte @@ -158,7 +158,9 @@ /> {:else if gameMeta.started && gameData !== undefined && question_index !== '' && answer_results === undefined} {#key unique} - +
+ +
{/key} {:else if gameMeta.started && answer_results !== undefined} {#if answer_results === null}