Multiple Restart links

fvu109
06 Jun 2021, 13:15

Is there a way to have multiple Restart links - eg one at the top as currently by default, and another on your game over section so that players can immediately start a new game rather than having to find the link at the top? Duplicating the code for the default one breaks them both :)


K.V.
06 Jun 2021, 14:05

Hello.

You can emulate someone clicking the restart link with this: jQuery("#squiffy").squiffy("restart");

@title Extra restart link V2

(VERSION 2)

This isn't a real game. I just made it to see if I can make a duplicate "restart" link.  The [[next section]] contains the extra link.

[[next section]]:

<center><h1>GAME OVER</h1></center>

[[Restart]]

[[Restart]]:
    jQuery("#squiffy").squiffy("restart");
Restarting . . .