-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1da0adc
commit 77b6311
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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> |