disable background

pull/1/head
PolicyChanges1@gmail.com 2021-02-13 08:27:43 -05:00
parent fc9d7ca801
commit 345ab6a327
3 changed files with 10 additions and 10 deletions

8
dist/tetrion.js vendored
View File

@ -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 = [];

View File

@ -37,13 +37,13 @@
<body>
<!--
<iframe id="bg" width="640" height="360" frameborder="0" src="https://www.shadertoy.com/embed/4lBGDh?gui=&t=10&paused=false&muted=false" allowfullscreen></iframe>
<script>
document.getElementById("bg").width = window.innerWidth;
document.getElementById("bg").height = window.innerHeight;
document.getElementById("bg").height = window.innerHeight;-->
</script>
<div id="tetris">

View File

@ -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 = [];