Skip to content

Commit

Permalink
countdown fix
Browse files Browse the repository at this point in the history
  • Loading branch information
UndeadNightFury committed Jun 28, 2024
1 parent f4cad62 commit e88b7c0
Show file tree
Hide file tree
Showing 5 changed files with 641 additions and 753 deletions.
18 changes: 4 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,14 @@ <h1><b><i>Welcome to CreatureVerse!</i></b></h1>
</p>
</div>

<!--<div class="countdown-text">
<p>Countdown to release!</p>
<div class="countdown-text">
<p>Countdown to: 5th Anniversary!</p>
<p id="countdown" class="countdown"></p>
</div>

<div class="countdown-text-mobile">
<p>Countdown to release!</p>
<p>Countdown to: 5th Anniversary!</p>
<p id="countdown-mobile" class="countdown-mobile"></p>
</div>-->

<div class="anniversary-text">
<p>Countdown to CreatureVerse 5th Anniversary!</p>
<p id="anniversary" class="anniversary"></p>
</div>

<div class="anniversary-text-mobile">
<p>Countdown to CreatureVerse 5th Anniversary!</p>
<p id="anniversary-mobile" class="anniversary-mobile"></p>
</div>

<p class="large-text" align="left">
Expand Down Expand Up @@ -79,7 +69,7 @@ <h1><b><i>Welcome to CreatureVerse!</i></b></h1>

<p class="small-text" align="left">
<i>
Version: 0.3.6
Version: 0.3.7
</i>
</p>

Expand Down
37 changes: 0 additions & 37 deletions js/anniversary.js

This file was deleted.

6 changes: 3 additions & 3 deletions js/countdown.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Set the date we're counting down to
var countDownDate = new Date("July 25, 2024 15:37:25").getTime();
var countDownDate = new Date("Aug 2, 2024").getTime();

// Update the count down every 1 second
var x = setInterval(function() {
Expand All @@ -26,12 +26,12 @@ var x = setInterval(function() {
// If the count down is over, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("countdown").innerHTML = "Release Day!";
document.getElementById("countdown").innerHTML = "CreatureVerse 5th Anniversary!";
}

// If the count down is over, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("countdown-mobile").innerHTML = "Release Day!";
document.getElementById("countdown-mobile").innerHTML = "CreatureVerse 5th Anniversary!";
}
}, 1000);
Loading

0 comments on commit e88b7c0

Please sign in to comment.