From 8dafdb00f6f42a60709c00ec5ff9088c77f46e3f Mon Sep 17 00:00:00 2001 From: etofok Date: Wed, 11 Sep 2024 18:58:43 +0300 Subject: [PATCH] web minor error fix --- web/countdown.css | 20 -------------------- web/index.html | 12 ------------ web/main.js | 41 ----------------------------------------- 3 files changed, 73 deletions(-) delete mode 100644 web/countdown.css diff --git a/web/countdown.css b/web/countdown.css deleted file mode 100644 index b7ba5d7..0000000 --- a/web/countdown.css +++ /dev/null @@ -1,20 +0,0 @@ -.countdown_launch { - font-family: "Geist"; - font-size: 4rem; - font-weight: 500; - - color: #ffffff; - padding: 1rem 0; - margin: 0 auto; -} - - -.redbg { - font-family: "Geist"; - font-size: 2rem; - font-weight: 150; - - color: #ffffff; - padding: 1rem 0; - -} \ No newline at end of file diff --git a/web/index.html b/web/index.html index 3921b38..03bf892 100644 --- a/web/index.html +++ b/web/index.html @@ -17,8 +17,6 @@ - -
@@ -31,16 +29,6 @@

+ 7 additional UX modules for even faster control!

DGridOnTop - - - -
diff --git a/web/main.js b/web/main.js index 00c6950..34741bc 100644 --- a/web/main.js +++ b/web/main.js @@ -226,12 +226,6 @@ document.addEventListener('DOMContentLoaded', function() { - - - - - - function DisplayModule(position) { for (let i = 0; i < modulesTotal; i++) { @@ -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');