js
<script language="javascript" type="text/javascript">
function cheat() {
var check = document.getElementById('cheatcode').value;
if(check == '') {
}
else {
var answer = 'Hallo '+check+', extra für dich Darfst trotzdem nicht rein!';
document.getElementById('cheat').innerHTML = answer;
document.getElementById('wirwolln').style.display = 'block';
}
}
function openit() {
document.getElementById('bestaetigen').style.display = 'none';
document.getElementById('cheat').style.display = 'block';
}
function klick() {
if(document.getElementById('counter').innerHTML == 0) {
if(document.getElementById('runde').innerHTML == 1) {
document.getElementById('counter').innerHTML = 200;
document.getElementById('nochmal').innerHTML = 'Und nochmal ';
document.getElementById('runde').innerHTML = 2;
}
if(document.getElementById('runde').innerHTML == 2 && document.getElementById('counter').innerHTML == 0) {
document.getElementById('counter').innerHTML = 300;
document.getElementById('nochmal').innerHTML = 'Und nochmal ';
document.getElementById('runde').innerHTML = 3;
}
if(document.getElementById('runde').innerHTML == 3 && document.getElementById('counter').innerHTML == 0) {
document.getElementById('window').innerHTML = '<br /><br />Stilllllleeeee Naaaacht, Heiiiiiligeeee Nacht!';
}
} else {
var counts = document.getElementById('counter').innerHTML;
counts = counts - 1;
document.getElementById('counter').innerHTML = counts;
}
}
function wirwolln() {
document.getElementById('window').style.display = 'block';
}
</script>