fix: add restart game button on results
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 34s
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 34s
This commit is contained in:
parent
b5c1b46938
commit
427a3fadbb
1 changed files with 4 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue