ClassQuiz - View {quiz.title}

{@html quiz.title}

{@html quiz.description}

Made by @{quiz.user_id.username}

{#if quiz.cover_image}
Not provided
{/if}
{#if quiz.imported_from_kahoot && quiz.kahoot_id}
View on Kahoot!
{/if} {#if logged_in}
{ start_game = quiz.id; }} > {$t('words.start')}
{:else}
{$t('words.start')}
{/if}
{$t('words.practice')}
{#if logged_in} {$t('words.download')} {:else}
{$t('words.download')}
{/if}
{#each quiz.questions as question, index_question}

{index_question + 1}: {@html question.question}

{#if question.image} Not provided {/if}

{question.time}s

{#if question.type === QuizQuestionType.ABCD || question.type === undefined}
{#each question.answers as answer, index_answer}

{quiz.questions[index_question].answers[index_answer] .answer}

{/each}
{:else if question.type === QuizQuestionType.RANGE}

All numbers between {question.answers.min_correct} and {question.answers.max_correct} are correct, where numbers between {question .answers.min} and {question.answers.max} can be selected.

{:else if question.type === QuizQuestionType.ORDER}
    {#each question.answers as answer}
  • {answer.answer}

  • {/each}
{:else if question.type === QuizQuestionType.VOTING || question.type === QuizQuestionType.TEXT}
{#each question.answers as answer, index_answer}

{quiz.questions[index_question].answers[index_answer] .answer}

{/each}
{:else if question.type === QuizQuestionType.SLIDE} {#await import('$lib/play/admin/slide.svelte')} {:then c}
{/await} {/if}
{/each}
{#if start_game !== null} {/if}