forked from MandyMeindersma/Adas-Team-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
202 lines (164 loc) · 5.71 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
198
199
200
201
202
<!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="description" content="Ada's Team Website">
<meta name="author" content="Ada's Team">
<!--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">
</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="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>
$(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');
var hash = window.location.hash;
// this if else allows the URL's to specify what tab you want to see
if(hash == "#tutoring") {
$('#page-content-wrapper').load('pages/tutoring.html');
$(window).scrollTop(0);
}
else if(hash == "#executives") {
$('#page-content-wrapper').load('pages/executives.html');
$(window).scrollTop(0);
}
else if(hash == "#resources") {
$('#page-content-wrapper').load('pages/resources.html');
$(window).scrollTop(0);
}
else if(hash == "#scholarships") {
$('#page-content-wrapper').load('pages/scholarships.html');
$(window).scrollTop(0);
}
else if(hash == "#contact-us") {
$('#page-content-wrapper').load('pages/contact-us.html');
$(window).scrollTop(0);
}
else if(hash == "#sign-up") {
$('#page-content-wrapper').load('pages/sign-up.html');
$(window).scrollTop(0);
}
else if(hash == "#contact-us-on") {
$('#page-content-wrapper').load('pages/contact-us-on.html');
$(window).scrollTop(0);
}
else if(hash == "#blog") {
$('#page-content-wrapper').load('pages/blog.html');
$(window).scrollTop(0);
}
else {
$('#page-content-wrapper').load('pages/home.html');
$(window).scrollTop(0);
}
$('#home').click(function() {
$('#page-content-wrapper').load('pages/home.html');
$(window).scrollTop(0);
toggleSideBarOnMobile();
});
$('#tutoring').click(function() {
$('#page-content-wrapper').load('pages/tutoring.html');
$(window).scrollTop(0);
toggleSideBarOnMobile();
});
$('#executives').click(function() {
$('#page-content-wrapper').load('pages/executives.html');
$(window).scrollTop(0);
toggleSideBarOnMobile();
});
$('#resources').click(function() {
$('#page-content-wrapper').load('pages/resources.html');
$(window).scrollTop(0);
toggleSideBarOnMobile();
});
$('#scholarships').click(function() {
$('#page-content-wrapper').load('pages/scholarships.html');
$(window).scrollTop(0);
toggleSideBarOnMobile();
});
$('#contact-us').click(function() {
$('#page-content-wrapper').load('pages/contact-us.html');
$(window).scrollTop(0);
toggleSideBarOnMobile();
});
$('#sign-up').click(function() {
$('#page-content-wrapper').load('pages/sign-up.html');
$(window).scrollTop(0);
toggleSideBarOnMobile();
});
$('#contact-us-on').click(function() {
$('#page-content-wrapper').load('pages/contact-us-on.html');
$(window).scrollTop(0);
toggleSideBarOnMobile();
});
$('#blog').click(function() {
$('#page-content-wrapper').load('pages/blog.html');
$(window).scrollTop(0);
toggleSideBarOnMobile();
});
toggleSideBarOnMobile = () => {
if ($(window).width() < 700){
$("#wrapper").toggleClass("toggled");
}
}
</script>
</body>
</html>