Skip to content

Commit

Permalink
web minor error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
etofok committed Sep 11, 2024
1 parent 423906d commit 8dafdb0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 73 deletions.
20 changes: 0 additions & 20 deletions web/countdown.css

This file was deleted.

12 changes: 0 additions & 12 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
<link rel="stylesheet" href="faq.css">
<link rel="stylesheet" href="lists.css">
<link rel="stylesheet" href="buttons.css">
<link rel="stylesheet" href="countdown.css">


<!-- Above the fold -->
<div class="section-read-abovethefold nocontextmenu">
Expand All @@ -31,16 +29,6 @@ <h3>+ 7 additional UX modules for even faster control!</h3>
<img class="nocontextmenu centered" src="assets/images/DGridOnTop.png" alt="DGridOnTop">

<a name="anchor_tothetop" class="anchor-smooth"></a>

<!--
<p>
<p class="redbg">LAUNCHED ON</p>
<p class="redbg">May 17, Friday - 8:00PM (GMT +3)</p>
<p class="countdown_launch padded" id="countdown_launch"></p>
</p>
-->


</div>

<!-- quick disclaimer -->
Expand Down
41 changes: 0 additions & 41 deletions web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,6 @@ document.addEventListener('DOMContentLoaded', function() {









function DisplayModule(position) {

for (let i = 0; i < modulesTotal; i++) {
Expand Down Expand Up @@ -280,41 +274,6 @@ function checkForHTTP(str) {



// launch date timer


var countDownDate = new Date("May 17, 2024 20: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);

// Display the result in the element with id="demo"
document.getElementById("countdown_launch").innerHTML = days + "d " + hours + "h "
+ minutes + "m " + seconds + "s ";

// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("countdown_launch").innerHTML = "00d 00h 00m 00s";
}
}, 1000);





// Listen to FAQ dropdown buttons
const disabledBtns = document.querySelectorAll('.temp_disabled');

Expand Down

0 comments on commit 8dafdb0

Please sign in to comment.