Fix: game could be launched multiple times
This commit is contained in:
parent
caab9fe47d
commit
3bde0a4a4f
@ -84,6 +84,7 @@ $(document).ready(function() {
|
|||||||
{
|
{
|
||||||
$('article #game').fadeToggle('quick', function()
|
$('article #game').fadeToggle('quick', function()
|
||||||
{
|
{
|
||||||
|
document.removeEventListener('keydown', funcListener);
|
||||||
$('article #container').append('<div id="score"><div id="top_game"><h1 class="whois"></h1><h1 class="chrono"></h1></div></div>');
|
$('article #container').append('<div id="score"><div id="top_game"><h1 class="whois"></h1><h1 class="chrono"></h1></div></div>');
|
||||||
$('article #container #score').append('<p class="pokemon"></p><div id="answers"></div>');
|
$('article #container #score').append('<p class="pokemon"></p><div id="answers"></div>');
|
||||||
generations();
|
generations();
|
||||||
|
Loading…
Reference in New Issue
Block a user