58 lines
1.6 KiB
HTML
58 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Tetrion Opening Trainer</title>
|
|
|
|
<link rel="stylesheet" href="css/styles.css">
|
|
</head>
|
|
<body>
|
|
|
|
|
|
<iframe id="bg" width="640" height="360" frameborder="0" src="https://www.shadertoy.com/embed/4lBGDh?gui=false&t=10&paused=false&muted=false" allowfullscreen></iframe>
|
|
<script>
|
|
var txt = "";
|
|
<!--txt += "<p>innerWidth: " + window.innerWidth + "</p>";
|
|
<!--txt += "<p>innerHeight: " + window.innerHeight + "</p>";-->
|
|
<!--txt += "<p>outerWidth: " + window.outerWidth + "</p>";-->
|
|
<!--txt += "<p>outerHeight: " + window.outerHeight + "</p>";-->
|
|
|
|
document.getElementById("bg").width = window.innerWidth;
|
|
document.getElementById("bg").height = window.innerHeight;
|
|
</script>
|
|
<div id="tetris">
|
|
<canvas id="scene"></canvas>
|
|
<div id="leftSide">
|
|
|
|
<canvas id="hold"></canvas>
|
|
</div>
|
|
<div id="gameOver">
|
|
<h1>Game Over !</h1>
|
|
<h3>Score: <span id="finalScore">0</span></h3>
|
|
<h2><a href="#" id="restart">Restart</a></h2>
|
|
|
|
</div>
|
|
<div id="side">
|
|
<div id="info">
|
|
<h1 id="levelInfo">Level: <br><span id="level">1</span></h1>
|
|
<h2 id="scoreInfo">Score: <br><span id="score" >0</span></h2>
|
|
<h1 id="linesInfo">Lines: <br><span id="lines" >0</span></h1>
|
|
<div id="rewardInfo" class="invisible">+<span id="reward">0</span></div>
|
|
<canvas id="preview"></canvas>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</body>
|
|
<script src="dist/tetrion.js"></script>
|
|
<script>
|
|
(function(){
|
|
var tetris = new Tetris('tetris');
|
|
tetris.start();
|
|
})();
|
|
</script>
|
|
</html>
|