-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
167 lines (152 loc) · 5.83 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" charset="UTF-8" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="48x48" href="images/favicon.png">
<link rel="manifest" href="/site.webmanifest">
<title>QCSD</title>
</head>
<body>
<div class="navbar">
<header>
<a href="#" class="logo"><img src="images/qcsd.png" id="nav-logo"></a>
<ul class="options">
<li><a href="#about">about</a></li>
<li><a href="#events">events</a></li>
<li><a href="#contact-us">contact</a></li>
</ul>
</header>
</div>
<div id="about">
<div id="row">
<div class="col-9">
<div id="about-title">
quantum computing
at ucsd
</div>
<div id="about-text">
<div id="about-description">
If you follow tech news at all, you’ve probably seen <b>a lot</b> of hype around quantum computing.
Quantum computing is a rapidly developing field that could revolutionize artificial intelligence,
cybersecurity, and drug development. However, it is also a field that can be unwieldy to an undergrad.
<br>
<br>
<i>That’s where we come in!</i> We’re a community of students dedicated to helping people like you learn
quantum computing. From beginners' workshops to Quantum Computing Hackathons, we're here to make learning
less daunting and more interesting!
</div>
</div>
</div>
<div id="col-3">
<img src="images\main-pattern.svg" id="about-image">
</div>
</div>
</div>
<div id="events">
<div class="row">
<div class="col-5">
<div id="events-title">events</div>
<div id="featured-event">
<div id="featured-container">
<div id="featured-title"></div>
</div>
<div id="featured-container">
<div id="featured-time"></div>
</div>
</div>
</div>
<div class="col-7">
<div id="events-socials"></div>
</div>
</div>
</div>
<div id="contact-us">
<div class="row">
<div class="col-7" style="float: right;">
<div id="involve-title">get involved!</div>
<iframe class="embedded-vid" src="https://www.youtube.com/embed/RygKRpndKEY" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class="col-5" style="float: left;">
<div id="social-icons">
<a href="https://discord.com/invite/CYPWdXpNqV"><img src="images/discord.png"></a>
<a href="https://www.facebook.com/qcucsd"><img src="images/FB.png"></a>
<a href="https://www.youtube.com/channel/UC89BhAeFQ16PcYK783eCfNw"><img src="images/YT.png"></a>
</div>
</div>
</div>
</div>
<div id="footer"></div>
<script type="text/javascript">
function reqListener () {
const items = this.responseText.split("\n");
const socialBlock = document.getElementById("events-socials");
const featuredTitleBlock = document.getElementById("featured-title");
const featuredTimeBlock = document.getElementById("featured-time");
var featuredItem = undefined;
var featuredDate = undefined
for (var i = 1; i < items.length; i++) {
if (items[i].length > 0) {
const item = items[i].split(" : ", 4);
const card = document.createElement("div");
const row = document.createElement("div");
const card_title = document.createElement("div");
const card_date = document.createElement("div");
const card_desc = document.createElement("div");
const itemDate = new Date(item[2]);
card.setAttribute("class", "card " + (itemDate.getTime() < new Date().getTime() ? "past" : "future"));
row.setAttribute("class", "card-title-row");
card_title.setAttribute("class", "card-title");
card_date.setAttribute("class", "card-date");
card_desc.setAttribute("class", "card-description");
row.appendChild(card_title);
row.appendChild(card_date);
card.appendChild(row);
card.appendChild(card_desc);
card_title.innerHTML = item[0];
const dates = item[1].split(" ", 4);
let time = "";
if(dates[3] !== undefined){
time = " " + dates[3];
}
card_date.innerHTML = dates[0] + " " + dates[1] + time;
card_desc.innerHTML = item[3];
socialBlock.appendChild(card);
if(featuredItem === undefined && itemDate.getTime() > new Date().getTime()){
featuredItem = item;
featuredDate = itemDate;
}
else if(itemDate.getTime() > new Date().getTime() && itemDate.getTime() < featuredDate.getTime()){
featuredItem = item;
featuredDate = itemDate;
}
}
}
if (featuredItem !== undefined) {
featuredTitleBlock.innerHTML = featuredItem[0];
const dates = featuredItem[1].split(" ", 4);
let time = "";
if(dates[3] !== undefined){
time = " " + dates[3];
}
featuredTimeBlock.innerHTML = dates[0] + " " + dates[1] + time;
}
}
var oReq = new XMLHttpRequest();
oReq.addEventListener("load", reqListener);
oReq.open("GET", "events.txt");
oReq.send();
window.addEventListener("scroll",
function() {
var header = document.querySelector("header");
header.classList.toggle("sticky", window.scrollY > 0);
})
var shiftWindow = function() { scrollBy(0, -55) };
if (location.hash) shiftWindow();
window.addEventListener("hashchange", shiftWindow);
</script>
</body>
</html>