-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-holding.html
85 lines (62 loc) · 2.71 KB
/
index-holding.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
82
83
84
85
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Who Feels At Home in the Visible World?</title>
<meta name="keywords" content="Art, Culture, Technology, MIT, ACT Program, SA+P, Architecture, Contemporary Art, MFA, CAVS">
<meta name="description" content="Who Feels At Home in the Visible World?">
<meta name="author" content="MIT Program in Art, Culture and Technology Graduate Exhibition">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="assets/css/fonts.css">
<link rel="stylesheet" href="assets/css/styles.css">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
</head>
<body class="landing">
<div class="parallax">
<div class="parallax__layer parallax__layer--deep">
</div>
<div class="parallax__layer parallax__layer--base">
</div>
<div class="parallax__layer parallax__layer--back">
<div class="grid-container">
<h2 class="Header Superheading" id="Superheading">
<a href="http://act.mit.edu/">MIT Program in Art, Culture and Technology</a>
<div class="Desktop" id="countdown"></div>
</h2>
<h1 id="Head" class="Header Heading">who feels at home in the visible world?</h1>
<h2 class="Mobile" id="mobileDate">Sept 4, 2020</h2>
<h2 class="Mobile" id="mobileCountdown"></h2>
<h2 class="Desktop" id="date">Sept 4, 2020</h2>
</div>
</div>
</div>
<script src="assets/js/scripts.js"></script>
<script>
// Set the date we're counting down to
var countDownDate = new Date("September 4, 2020 20:30: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).toString().padStart(2, '0');
// var milliseconds = Math.floor((distance % (100)));
// Display the result in the element with id="demo"
document.getElementById("countdown").innerHTML = days + ":" + hours + ":"
+ minutes + ":" + seconds + "";
document.getElementById("mobileCountdown").innerHTML = days + ":" + hours + ":"
+ minutes + ":" + seconds + "";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("demo").innerHTML = "EXPIRED";
}
}, 100);
</script>
</body>
</html>