fix: add restart game button on results
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 34s

This commit is contained in:
uku 2024-11-27 14:28:29 +01:00
parent b5c1b46938
commit 427a3fadbb
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o

View file

@ -13,6 +13,7 @@
const name = props.data.rounds[0].name;
const saveParams = new URLSearchParams({ next: `/api/save?id=${props.data.gameId}` });
const restartParams = new URLSearchParams({ mode, stops_type });
const ogDesc = `${totalScore} points par ${name ?? "inconnu"} - Difficulté: ${mode} - Arrêts: ${stops_type}`;
</script>
@ -48,7 +49,9 @@
<span class="small">id de partie: {props.data.gameId}</span>
<h2>
<a href="/">Page principale</a> - <a href="/leaderboard">Meilleurs scores</a>
<a href="/">Page principale</a> -
<a href="/game?{restartParams}">Relancer une partie</a> -
<a href="/leaderboard">Meilleurs scores</a>
</h2>
<style>