Skip to content

Commit

Permalink
THE 8 BEGINS
Browse files Browse the repository at this point in the history
  • Loading branch information
DBTDerpbox committed Aug 8, 2024
1 parent cd77719 commit 18ce73b
Showing 1 changed file with 3 additions and 32 deletions.
35 changes: 3 additions & 32 deletions _posts/blog/2024-8-3-8event.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,8 @@ main-text: |
We hope everyone involved has fun, see you there!
The event starts in:
<h1 id="countdown"></h1>
<script>
// Set the date we're counting down to
var countDownDate = new Date("August 8, 2024 0:0:0").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="countdown"
document.getElementById("countdown").innerHTML = days + "d " + hours + "h "
+ minutes + "m " + seconds + "s ";
// If the count down is over, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("countdown").innerHTML = "Starting soon!";
}
}, 1000);
</script>
# The event is currently active!
Join at legacyminigames.net on 1.20.4
markdown: true
---

0 comments on commit 18ce73b

Please sign in to comment.