|
|
Line 144: |
Line 144: |
| | | |
| <script type="text/javascript"> | | <script type="text/javascript"> |
− | if ( window.addEventListener ) {
| |
− | var state = 0, keys = [68,65,78,73,69,76], stateC=0, keysC=[38,38,40,40,37,39,37,39,66,65,83];
| |
− | window.addEventListener("keydown", function(e) {
| |
− | if ( e.keyCode == keys[state] ) state++; else state=0;
| |
− | if ( e.keyCode == keysC[stateC] ) stateC++; else stateC=0;
| |
− | if ( state == keys.length ) {
| |
− | document.getElementById("sandbox").innerHTML = "<div id='contentContainer'><h1>THIS DOESN'T MAKE ANY SENSE!!!</h1></div>";
| |
− | $("#sandbox").css('padding-bottom','20px');
| |
− | state++;}
| |
− |
| |
− | if ( stateC == keysC.length ) {
| |
− | document.getElementById("lives").style.display = "initial";
| |
− | document.getElementById("runner").style.display = "initial";
| |
− | stateC++;}
| |
− | }, true);
| |
− | }
| |
− |
| |
− |
| |
| </script> | | </script> |
| <div id="lives" style="position:fixed;left:5px;top:16px;display:none;"> | | <div id="lives" style="position:fixed;left:5px;top:16px;display:none;"> |