Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@

<div class="row">
<div class="logo">
<a href="#">Regex Startup Services</a>
<a href="#">Regex Startup Services (Countdown)</a>
</div>
<div class="logo">
<a href="#">Regex Startup Services ( 2nd Logo Countdown)</a>
</div>


Expand Down Expand Up @@ -105,33 +108,29 @@

<script>
// Set the date we're counting down to
var countDownDate = new Date("Aug 30, 2019 17:00:00").getTime();

var countDownDate = new Date("Oct 30, 2019 12: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);

document.getElementById("days").innerHTML = days + " <sup>Days</sup>";
document.getElementById("hours").innerHTML = hours + " <sup>Hours</sup>";
document.getElementById("mins").innerHTML = minutes + " <sup>Minutes</sup>";
document.getElementById("secs").innerHTML = seconds + " <sup>Seconds</sup>";

document.getElementById("days").innerHTML = days + " Days";
document.getElementById("hours").innerHTML = hours + " Hours";
document.getElementById("mins").innerHTML = minutes + " Minutes";
document.getElementById("secs").innerHTML = seconds + " Seconds";
console.log(days + hours + minutes + seconds);
// If the count down is over, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("days").innerHTML = "EXPIRED";
document.getElementById("days").innerHTML = "The Time Countdown Has Expired!!";
}
//This is Code was edited by Rupesh Chaudhari
}, 1000);
</script>
<div class="bottom-text">
Expand Down Expand Up @@ -167,4 +166,4 @@ <h1 style="letter-spacing: 2px;">Regex Startup Services</h1>

</body>

</html>
</html>