-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.html
65 lines (57 loc) · 1.8 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
<!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 1</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" style="display:none;" href="https://docs.google.com/forms/d/e/1FAIpQLSedcXu630azG-kTovH7gIEV8n24Bgp6FmHq4IU1STqVzLfu6A/viewform?usp=sf_link">
Post-Section Form
</a>
</body>
<script>
document.addEventListener('DOMContentLoaded', () => {
let now = Date.now() / 1000;
if (now > 1568750400) {
document.querySelectorAll(".postsection").forEach(elt => {
elt.style.display = "block";
});
}
});
</script>
</html>