diff --git a/dist/tetrion.js b/dist/tetrion.js index 356f26a..65940d1 100644 --- a/dist/tetrion.js +++ b/dist/tetrion.js @@ -1030,10 +1030,10 @@ Tetris.prototype = { this._update(); } if(curkey == 81) { - if(document.getElementById("bg").style.display == "none") - document.getElementById("bg").style.display = "initial"; - else - document.getElementById("bg").style.display="none"; + //if(document.getElementById("bg").style.display == "none") + // document.getElementById("bg").style.display = "initial"; + //else + // document.getElementById("bg").style.display="none"; } } inputs.inputqueue = []; diff --git a/index.html b/index.html index f653271..e7c1361 100644 --- a/index.html +++ b/index.html @@ -37,13 +37,13 @@ - +
diff --git a/src/main.js b/src/main.js index ba734a1..1068e12 100644 --- a/src/main.js +++ b/src/main.js @@ -385,10 +385,10 @@ Tetris.prototype = { this._update(); } if(curkey == 81) { - if(document.getElementById("bg").style.display == "none") - document.getElementById("bg").style.display = "initial"; - else - document.getElementById("bg").style.display="none"; + //if(document.getElementById("bg").style.display == "none") + // document.getElementById("bg").style.display = "initial"; + //else + // document.getElementById("bg").style.display="none"; } } inputs.inputqueue = [];