Skip to content

Commit

Permalink
Create index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
WeissbrotDE authored Jan 8, 2024
1 parent 1da0adc commit 77b6311
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions deutschabi/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE HTML>
<html>
<head>
<title>Deutsch-Abi Countdown</title>
<meta charset="UTF-8">
<meta name="description" content="Zeit bis zum Deutsch-Abi">
<meta name="keywords" content="Abi, Deutsch, Abitur">
<meta name="author" content="Emily">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
p {
text-align: center;
font-size: 60px;
margin-top: 0px;
}
</style>
</head>
<body>
<h1><p style="text-align:center">Noch</p></h1>
<p id="deutschabi"></p>

<script>
// Set the date we're counting down to
var countDownDate = new Date("Jun 4, 2023 00:00:00").getTime();

// Update the count down every 1 second
var x = setInterval(function() {

// Get today's date and time
var now = new Date().getTime();

// Find the distance between now and the count down date
var distance = countDownDate - now;

// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);

// Output the result in an element with id="paypal"
document.getElementById("deutschabi").innerHTML = days + " Tage " + hours + " Stunden "
+ minutes + " Minuten und " + seconds + " Sekunden ";

// If the count down is over, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("deutschabi").innerHTML = "EXPIRED";
}
}, 1000);
</script>
<h1><p style="text-align:center">bis zum Abitur im Fach Deutsch.</p></h1>
</body>
</html>

0 comments on commit 77b6311

Please sign in to comment.