-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
197 lines (160 loc) · 6.89 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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="author" content="Ada's Team">
<meta name="google-site-verification" content="vqBehCAIlFcm-oP1QWiwX5FcKARObQrzSyPkFndhWRA" />
<!-- YES WE NEED ALL THESE STUPID META TAGS TO GET GOOGLE TO DISPLAY THINGS CORRECTLY generated with https://megatags.co/ -->
<meta charset="utf-8">
<title>Ada's Team</title>
<!-- Search Engine -->
<meta name="description" content="Ada's Team is a student group at the University of Alberta, promoting diversity in computing science, games, technology, engineering, and mathematics.">
<meta name="image" content="https://adas-team.github.io/img/banner.PNG">
<!-- Schema.org for Google -->
<meta itemprop="name" content="Ada's Team">
<meta itemprop="description" content="Ada's Team is a student group at the University of Alberta, promoting diversity in computing science, games, technology, engineering, and mathematics.">
<meta itemprop="image" content="https://adas-team.github.io/img/banner.PNG">
<!-- Twitter -->
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Ada's Team">
<meta name="twitter:description" content="Ada's Team is a student group at the University of Alberta, promoting diversity in computing science, games, technology, engineering, and mathematics.">
<meta name="twitter:site" content="@Adas_Team">
<!-- Open Graph general (Facebook, Pinterest & Google+) -->
<meta name="og:title" content="Ada's Team">
<meta name="og:description" content="Ada's Team is a student group at the University of Alberta, promoting diversity in computing science, games, technology, engineering, and mathematics.">
<meta name="og:image" content="https://adas-team.github.io/img/banner.PNG">
<meta name="og:url" content="https://adas-team.github.io/">
<meta name="og:site_name" content="Ada's Team">
<meta name="og:locale" content="en">
<meta name="og:type" content="website">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-136317746-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-136317746-1');
</script>
<!--favicon-->
<link rel="icon" href="/img/head-square.png">
<title>Ada's Team</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/simple-sidebar.css" rel="stylesheet">
<!-- Questrial Google Foot -->
<link href="https://fonts.googleapis.com/css2?family=Questrial&display=swap" rel="stylesheet">
</head>
<body class="ada-background">
<header id="header" class="ada-header">
<input class="left ada-header-menu" href="#menu-toggle" id="menu-toggle" type="image" src="img/menu.png" />
<div class="ada-header-text">Ada's Team</div>
</header>
<div id="wrapper">
<!-- Sidebar -->
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li class="space-above">
<a id="home" href="#">Home</a>
</li>
<li>
<a id="tutoring" href="#tutoring">Tutoring</a>
</li>
<li>
<a id="events" href="#events">Events</a>
</li>
<li>
<a id="executives" href="#executives">Executives</a>
</li>
<li>
<a id="resources" href="#resources">Resources</a>
</li>
<li>
<a id="scholarships" href="#scholarships">Scholarships</a>
</li>
<li>
<a id="sign-up" href="#sign-up">Sign Up</a>
</li>
<li>
<a id="contact-us" href="#contact-us">Contact Us</a>
</li>
<li>
<a id="blog" href="#blog">Blog</a>
</li>
</ul>
</div>
<!-- /#sidebar-wrapper -->
<!-- Page Content -->
<div id="page-content-wrapper">
<!-- literally everything goes in here, all inserted through jquery-->
</div>
<!-- /#page-content-wrapper -->
</div>
<!-- /#wrapper -->
<footer id="footer" class="ada-footer"></footer>
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script>
// Open the sidebar on wide enough screens.
// TODO: use a media query for this?
$(document).ready(function(){
if ($(window).width() > 700){
$("#wrapper").toggleClass("toggled");
}
});
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("toggled");
});
$('#footer').load('pages/footer.html');
// Collect all of the links that go to pages/*.html.
var pageLinks = $('.sidebar-nav a[id]');
// Get a array of all of the valid pages.
// Valid pages are marked by an #id in the sidebar-nav.
var pages = pageLinks.map(function (_index, element) {
return element.id;
}).toArray();
navigateToPageBasedOnHash();
// Whenever the URI's #fragment (a.k.a., hash) changes, navigate to a new page.
// NB: the sidebar links will change the hash appropriately.
window.onhashchange = function (_event) {
navigateToPageBasedOnHash();
// You clicked a link in the sidebar, so the sidebar should close.
toggleSideBarOnMobile();
}
function toggleSideBarOnMobile() {
if ($(window).width() < 700){
$("#wrapper").toggleClass("toggled");
}
}
function navigateToPageBasedOnHash() {
var hash = window.location.hash;
var requestedPage = hash.slice('1');
// this if else allows the URL's to specify what tab you want to see
if (includes(pages, requestedPage)) {
goToPage(requestedPage);
} else {
goToPage('home');
}
}
// Navigates to the given page name.
// The name must coorespond to a file in pages/*.html.
function goToPage(name) {
$('#page-content-wrapper').load('pages/' + name + '.html');
$(window).scrollTop(0);
}
// Same as Array.prototype.includes(), but defined here for browsers that
// don't support it (*cough* IE11 *cough cough*)
function includes(array, searchItem) {
for (var i = 0; i < array.length; i++) {
if (array[i] === searchItem) {
return true;
}
}
return false;
}
</script>
</body>
</html>