Update index.html
This commit is contained in:
parent
ffb69f8dc6
commit
4c88098546
33
index.html
33
index.html
@ -21,12 +21,45 @@ body {
|
|||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<h1>RetryLife</h1>
|
<h1>RetryLife</h1>
|
||||||
|
<p id="demo">21d 12h 19m 33s </p>
|
||||||
<a href="Http://retrylife.bandcamp.com"><h2>Music</h2></a>
|
<a href="Http://retrylife.bandcamp.com"><h2>Music</h2></a>
|
||||||
<a href="https://www.youtube.com/channel/UCrHT3Lt0Mg90bspbMHJfTcA"><h2>Video</h2></a>
|
<a href="https://www.youtube.com/channel/UCrHT3Lt0Mg90bspbMHJfTcA"><h2>Video</h2></a>
|
||||||
<a href="./donate.html"><h2>Donate</h2></a>
|
<a href="./donate.html"><h2>Donate</h2></a>
|
||||||
<a href="https://github.com/Ewpratten"><h2>Github</h2></a>
|
<a href="https://github.com/Ewpratten"><h2>Github</h2></a>
|
||||||
<a href="http://www.rssmix.com/u/8265803/rss.xml"><h2>RSS</h2></a>
|
<a href="http://www.rssmix.com/u/8265803/rss.xml"><h2>RSS</h2></a>
|
||||||
<a href="./about.html"><h2>About Me</h2></a>
|
<a href="./about.html"><h2>About Me</h2></a>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// Set the date we're counting down to
|
||||||
|
var countDownDate = new Date("Dec 25, 2017 9:0:0").getTime();
|
||||||
|
|
||||||
|
// Update the count down every 1 second
|
||||||
|
var x = setInterval(function() {
|
||||||
|
|
||||||
|
// Get todays date and time
|
||||||
|
var now = new Date().getTime();
|
||||||
|
|
||||||
|
// Find the distance between now an 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);
|
||||||
|
|
||||||
|
// Output the result in an element with id="demo"
|
||||||
|
document.getElementById("demo").innerHTML = days + "d " + hours + "h "
|
||||||
|
+ minutes + "m " + seconds + "s ";
|
||||||
|
|
||||||
|
// If the count down is over, write some text
|
||||||
|
if (distance < 0) {
|
||||||
|
clearInterval(x);
|
||||||
|
document.getElementById("demo").innerHTML = "";
|
||||||
|
}
|
||||||
|
}, 1000);
|
||||||
|
</script>
|
||||||
</span></div>
|
</span></div>
|
||||||
<div><span></span></div>
|
<div><span></span></div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user