Skip to content

Commit

Permalink
Remove countdown, link launch fluxedge link
Browse files Browse the repository at this point in the history
  • Loading branch information
blondfrogs committed Jun 26, 2024
1 parent 245087e commit 64cf1c2
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ <h2 class="fa fa-bars">&#9776;</h2>
high-performance, affordable computing resources on a fair and efficient platform.
</div>
<br></br><br>
<a href="https://fluxedge.ai/" class="btnFluxcore2 btnBlue">Launch
<a href="https://alpha.fluxedge.ai/" class="btnFluxcore2 btnBlue">Launch
<span>FluxEdge</span></a>
<a href="https://docs.fluxedge.ai/" class="btn btnExtra">Documentation</a>
</div>
Expand All @@ -80,7 +80,7 @@ <h2 class="fa fa-bars">&#9776;</h2>
</header>

<body>
<div id="overlay" class="overlay">
<!-- <div id="overlay" class="overlay">
<div id="countdown" class="countdown-card">
<button id="closeButton" class="countdown-close-button">×</button>
<img id="coutdown-logo" src="img/Flux_white-blue.svg" class="logo">
Expand Down Expand Up @@ -108,7 +108,7 @@ <h2 class="fa fa-bars">&#9776;</h2>
</div>
<button id="cancelButton">Cancel</button>
</div>
</div>
</div> -->

<div id="partners" class="partners">
<p style="text-align: center; color: white; font-size: 25px;">Official Infrastructure Partners</p>
Expand Down
60 changes: 30 additions & 30 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,40 +30,40 @@ document.addEventListener("DOMContentLoaded", function() {
exitButton.addEventListener("click", closeOverlay);
closeButton.addEventListener("click", closeOverlay);

function startCountdown(endDate) {
let timer = setInterval(function() {
let now = new Date().getTime();
let distance = endDate - now;
// function startCountdown(endDate) {
// let timer = setInterval(function() {
// let now = new Date().getTime();
// let distance = endDate - now;

if (distance < 0) {
clearInterval(timer);
daysElement.innerText = 0;
hoursElement.innerText = 0;
minutesElement.innerText = 0;
secondsElement.innerText = 0;
countdownTimer.style.display = "none";
const availableNowMessage = document.createElement("div");
availableNowMessage.className = 'available-now';
availableNowMessage.innerText = "Available Now";
countdowndisplayElement.appendChild(availableNowMessage);
return;
}
// if (distance < 0) {
// clearInterval(timer);
// daysElement.innerText = 0;
// hoursElement.innerText = 0;
// minutesElement.innerText = 0;
// secondsElement.innerText = 0;
// countdownTimer.style.display = "none";
// const availableNowMessage = document.createElement("div");
// availableNowMessage.className = 'available-now';
// availableNowMessage.innerText = "Available Now";
// countdowndisplayElement.appendChild(availableNowMessage);
// return;
// }

let days = Math.floor(distance / (1000 * 60 * 60 * 24));
let hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
let minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
let seconds = Math.floor((distance % (1000 * 60)) / 1000);
// let days = Math.floor(distance / (1000 * 60 * 60 * 24));
// let hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
// let minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
// let seconds = Math.floor((distance % (1000 * 60)) / 1000);

daysElement.innerText = days;
hoursElement.innerText = hours;
minutesElement.innerText = minutes;
secondsElement.innerText = seconds;
}, 1000);
}
// daysElement.innerText = days;
// hoursElement.innerText = hours;
// minutesElement.innerText = minutes;
// secondsElement.innerText = seconds;
// }, 1000);
// }

let countdownDate = new Date("June 26, 2024 6:00:00 UTC").getTime();
startCountdown(countdownDate);
});
// let countdownDate = new Date("June 26, 2024 6:00:00 UTC").getTime();
// startCountdown(countdownDate);
// });

function showFaq(number){
if(number == 1){
Expand Down

0 comments on commit 64cf1c2

Please sign in to comment.