-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·70 lines (54 loc) · 2.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
---
layout: base
---
<header id="parent">
<div class="container">
<div class="row" id="child">
<div class="col-md-12">
<div class="text-center" >
<img src="assets/images/CU_Blockchain_Logo_Outline.png" alt="" class="img-responsive title-logo">
<h1 class="title">Fall 2018</h1>
<h1 class="title">CU Blockchain Summit</h1>
<h2>Workshops | Panels | Networking</h2>
<h3>In the UMC this Saturday, October 13<sup>th</sup> 2018</h3>
<h3>Full Day Blockchain Conference</h3>
<h2 id="countdown">Kicking off soon!</h2>
</div>
</div>
</div>
</div>
</header>
<script>
// https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_countdown
var countDownDate = new Date("Oct 13, 2018 08:00:00").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 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);
// Output the result in an element with id="demo"
document.getElementById("countdown").innerHTML = "Kickoff in " + days + "d " + hours + "h "
+ minutes + "m " + seconds + "s !";
// If the count down is over, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("countdown").innerHTML = "It's All Over!";
}
}, 1000);
</script>
{% include sections/about.html %}
{% include sections/register.html %}
{% include sections/faq.html %}
{% include sections/schedule.html %}
{% include sections/become_sponsor.html %}
{% include sections/sponsors.html %}
{% include sections/partners.html %}
{% include sections/location.html %}
{% include sections/contact.html %}
{% include footer.html %}