disable background
parent
fc9d7ca801
commit
345ab6a327
|
@ -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 = [];
|
||||
|
|
|
@ -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">
|
||||
|
||||
|
|
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in New Issue