{$t('play_page.join_description', { url: window.location.host === 'classquiz.de' ? 'cquiz.de' : `${window.location.host}/play`, pin: game_pin })}

(fullscreen_open = true)} alt="QR code to join the game" src="/api/v1/utils/qr/{game_pin}" class="block mx-auto w-1/2 dark:bg-white shadow-2xl rounded-sm hover:cursor-pointer" /> {#if cqc_code}

{#if game_state.players.length <= 1} {$t('play_page.players_waiting', { count: game_state.players.length ?? 0 })} {:else} {$t('play_page.players_waiting_plural', { count: game_state.players.length ?? 0 })} {/if}

{$t('play_page.join_by_entering_code')}

{:else}

{#if game_state.players.length <= 1} {$t('play_page.players_waiting', { count: game_state.players.length ?? 0 })} {:else} {$t('play_page.players_waiting_plural', { count: game_state.players.length ?? 0 })} {/if}

{/if}

{$t('words.pin')}: {game_pin}

{ socket_game_controls.start_game(); }} >{$t('admin_page.start_game')}
{#if game_state.players.length > 0} {#each game_state.players as player}
{ socket_game_controls.kick_player(player.username, game_state.players); }}>{player.username}
{/each} {/if}
{#if fullscreen_open}
(fullscreen_open = false)} tabindex="0" role="button" aria-label="Close modal" onkeydown={(e) => e.key === 'Enter' || e.key === ' ' ? () => { fullscreen_open = false; } : null} > QR code to join the game
{/if}