From 345ab6a327bd6efb570e86db81dbe44693c2994f Mon Sep 17 00:00:00 2001 From: "PolicyChanges1@gmail.com" Date: Sat, 13 Feb 2021 08:27:43 -0500 Subject: [PATCH] disable background --- dist/tetrion.js | 8 ++++---- index.html | 4 ++-- src/main.js | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) 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 = [];