This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Turm Fort Stahlberg</title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src></script> | |
| </head> | |
| <body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function countdowntimer(element, secs) { | |
| var i = (secs) ? secs : element.innerHTML; | |
| var t1 = setInterval(function() { | |
| if(i != 0){ | |
| i--; | |
| } | |
| else{ | |
| clearInterval(t1); | |
| //timer ends here | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var keyPressed; | |
| document.onkeyup = function(event) { | |
| keyPressed = String.fromCharCode(('which' in event) ? event.which : event.keyCode); | |
| input(); | |
| }; | |
| function input() { | |
| if(keyPressed == "D") document.write("hi"); | |
| } |
NewerOlder