-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
82 lines (64 loc) · 3.19 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html>
<head>
<link rel="icon" href="http://countdown2020.cf/falvon.png">
<link rel="stylesheet" href="index.css"/>
</script>
<script src="./index.js">
</script>
<title>Countdown</title>
<!-- Cookie Consent by https://TermsFeed.com -->
<script type="text/javascript" src="//termsfeed.com/cookie-consent/releases/2.0.0/cookie-consent.js"></script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function () {
cookieconsent.run({"notice_banner_type":"simple","consent_type":"express","palette":"light","website_name":"Countdown","cookies_policy_url":"https://mytos.ga/cookies.html"});
});
</script>
<noscript>By <a href="https://termsfeed.com/">TermsFeed</a></noscript>
<!-- End Cookie Consent -->
<script>
function myFunction() {
alert("Hello! I am an alert box!");
}
</script>
</head>
<body>
<div class="bgimg">
<div class="topleft">
<p> | <a href="https://repl.it/@AydenB/countdown-to-2020">Source Code</a> </br> | <a href="https://firework--aydenb.repl.co/about.html">About </a> </br> |
<a href="https://firework--aydenb.repl.co/loadingp.html
">More Projects </a>
</div>
<div class="middle">
<h1>Time until 2020:</h1>
<p id="demo"></p>
</div>
<div class="bottomleft">
<p>Created with ❤️ by Firework</p>
<a style="background-color:black;color:white;text-decoration:none;padding:4px 6px;font-family:-apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", Helvetica, Ubuntu, Roboto, Noto, "Segoe UI", Arial, sans-serif;font-size:12px;font-weight:bold;line-height:1.2;display:inline-block;border-radius:3px" href="https://unsplash.com/@sebastian_unrau?utm_medium=referral&utm_campaign=photographer-credit&utm_content=creditBadge" target="_blank" rel="noopener noreferrer" title="Download free do whatever you want high-resolution photos from Sebastian Unrau"><span style="display:inline-block;padding:2px 3px"><svg xmlns="http://www.w3.org/2000/svg" style="height:12px;width:auto;position:relative;vertical-align:middle;top:-2px;fill:white" viewBox="0 0 32 32"><title>unsplash-logo</title><path d="M10 9V0h12v9H10zm12 5h10v18H0V14h10v9h12v-9z"></path></svg></span><span style="display:inline-block;padding:2px 3px">Sebastian Unrau</span></a>
</div>
<div class="topleft">
<p> </p>
</div>
<script>
var countDownDate = new Date("Jan 1, 2020 12:00:00").getTime();
var x = setInterval(function() {
var now = new Date().getTime();
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("demo").innerHTML = days + "d " + hours + "h "
+ minutes + "m " + seconds + "s ";
if (distance < 0) {
clearInterval(x);
document.getElementById("demo").innerHTML = "Happy New year!";
}
}, 1000);
</script>
</div>
<p>By visting this site you agree to our <a href="https://mytos.ga/" style="color:dodgerblue">Terms & Privacy</a></p>
</body>
</html>