forked from lotofcaffeine/cs50
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_old.html
71 lines (63 loc) · 1.88 KB
/
index_old.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
<!DOCTYPE html>
<html>
<head>
<title>This is CS50 Section</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet">
<style>
body {
text-align: center;
font-family: Montserrat;
}
h1 {
margin: 5px;
}
p {
margin: 0;
}
.button {
display: block;
margin-left: auto;
margin-right: auto;
color: black;
background-color: #7cd9d2;
font-family: Montserrat;
text-decoration: none;
border: 1px solid black;
border-radius: 10px;
padding: 15px;
width: 200px;
}
</style>
</head>
<body>
<h1>CS50 Seciton 7</h1>
<div style="margin-bottom:40px;">
<p>Brian Yu</p>
<p>[email protected]</p>
</div>
<a class="button" href="/feedback">
Live Feedback
</a>
<br/>
<a class="button postsection" href="https://forms.gle/pzqT2FjXS34magW47">
Post-Section Form
</a>
</body>
<script>
function check() {
let now = Date.now() / 1000;
console.log(now);
// https://www.epochconverter.com
if (now > 1574197200) {
document.querySelectorAll(".postsection").forEach(elt => {
elt.style.display = "block";
});
}
}
document.addEventListener('DOMContentLoaded', () => {
check();
window.setInterval(check, 1000 * 60);
});
</script>
</html>