forked from SamTheOracle/UnIndoors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClasses.html
271 lines (203 loc) · 11 KB
/
Classes.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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<!doctype html>
<html>
<head>
<title>Uniboors</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/loginpagestylesheet.css" rel="stylesheet" />
<link href="css/classesstylesheet.css" rel="stylesheet" />
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh"
crossorigin="anonymous"></script>
<script src="js/bootstrap.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.9.0/firebase.js"></script>
<script>
var config = {
apiKey: "AIzaSyAiVwf9orhjqFyH6i4HBSmmaZuLwrJyZnQ",
authDomain: "uniboindoors.firebaseapp.com",
databaseURL: "https://uniboindoors.firebaseio.com",
projectId: "uniboindoors",
storageBucket: "uniboindoors.appspot.com",
messagingSenderId: "484831871025"
};
firebase.initializeApp(config);
// var database=firebase.database()
var worker=new Worker('js/updater.js')
window.setInterval(function(){
// console.log('hi')
worker.postMessage('start')
},30000)
</script>
<script src="js/classeshandler.js"></script>
<script src="js/userstatus.js"></script>
<script src="js/operators.js"></script>
<script src="js/navbar.js"></script>
<script src="js/loginpage.js"></script>
<script src="js/customalert.js"></script>
</head>
<body>
<nav class="navbar navbar-dark bg-dark fixed-top navbar-expand-lg justify-content-between">
<a class="navbar-brand" href="index.html"> <img id="logo" src="logo.png"> </a>
<button id="button_toggle" class="navbar-toggler" type="button" data-toggle="collapse" data-target="#menu_start" aria-controls="menu_start"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="menu_start">
<ul class="navbar-nav mr-auto mt-2 mt-lg-0 ">
<li class="nav-item">
<a class="nav-link" href="MyHelpRequests.html">My Help Requests</a>
</li>
<li class="nav-item">
<a class="nav-link" href="Classes.html">My Classes</a>
</li>
<li>
<a class="nav-link" href="OtherPlaces.html">All Places</a>
</li>
</ul>
<ul class="navbar-nav navbar-right" id="login_signup_navbar">
<li class="nav-item">
<a class="nav-link active" href="SignUp.html">Sign up</a>
</li>
<li class="vl"></li>
<li class="nav-item">
<a class="nav-link active" href="LogIn.html">Log in</a>
</li>
<li class="nav-item">
<img src="css/assets/boy.svg" style="width:90px; max-height:65px;">
</li>
</ul>
</div>
</nav>
<div class="container" style="margin-top: 80px;" >
<h1 class="display-2 text-center title" style="color: white;" >Today's Lessons </h1>
</div>
<div class="container-fluid" style="margin-top: 40px;">
<div class="carousel slide" data-ride="carousel" id="carousel_today_classes" >
<div class="carousel-inner" id="today_classes_inner"></div>
<div class="loader d-block mx-auto my-auto loader-classes" ></div>
<a class="carousel-control-prev control" href="#carousel_today_classes" role="button" data-slide="prev" id="today_carousel_controls"><span class="carousel-control-prev-icon" aria-hidden="true"></span><span class="sr-only">Previous</span></a><a class="carousel-control-next control" href="#carousel_today_classes" role="button" data-slide="next" id="today_carousel_controls"><span class="carousel-control-next-icon" aria-hidden="true"></span><span class="sr-only">Next</span></a>
</div>
</div>
<div class="container" style="margin-top: 30px;" >
<h1 class="display-2 text-center title" style="color: white;" id="class_name"></h1>
</div>
<div class="container" style="margin-top: 30px; " >
<h1 class="display-2 text-center title" style="color: white; ">This Week's Lessons</h1>
</div>
<div class="container-fluid" style="height:100%; margin-top: 40px; margin-bottom: 80px;">
<div class="carousel slide" data-ride="carousel" id="carousel_next_classes" >
<div class="loader loader-classes d-block mx-auto my-auto" ></div>
<div class="carousel-inner" id="next_classes_inner" ></div>
<a class="carousel-control-prev control" href="#carousel_next_classes" role="button" data-slide="prev" id="today_carousel_controls"><span class="carousel-control-prev-icon" aria-hidden="true"></span><span class="sr-only">Previous</span></a><a class="carousel-control-next control" href="#carousel_next_classes" role="button" data-slide="next" id="today_carousel_controls"><span class="carousel-control-next-icon" aria-hidden="true"></span><span class="sr-only">Next</span></a>
</div>
</div>
<script>
$( document ).ready(function() {
var width=$( window ).width();
setUpTodayClasses(width)
if(width>=1000){
var title=jQuery('.title')
if(title.hasClass('display-3')){
title.removeClass('display-3')
title.addClass('display-2')
}
}
if(width>=768 && width<1000){
console.log("only two")
var title=jQuery('.title')
if(title.hasClass('display-2')){
title.removeClass('display-2')
title.addClass('display-3')
}
else{
title.removeClass('display-4')
title.addClass('display-3')
}
}
if(width<768){
console.log("only one")
var title=jQuery('.title')
if(title.hasClass('display-3')){
title.removeClass('display-3')
title.addClass('display-4')
}
if(title.hasClass('display-2')){
title.removeClass('display-2')
title.addClass('display-4')
}
$('#searchs').css('max-width','130px')
$('#btn-submit').css('margin-left','10px')
}
});
$(window).resize(function(){
var width=$( window ).width();
if(width>=1000){
var title=jQuery('.title')
if(title.hasClass('display-3')){
title.removeClass('display-3')
title.addClass('display-2')
}
console.log("only three")
resizeAlgorithm(3,getCarouselItems('#today_classes_inner'),'#today_classes_inner','#carousel_today_classes')
resizeAlgorithm(3,getCarouselItems('#week_classes_inner'),'#week_classes_inner','#carousel_week_classes')
resizeAlgorithm(3,getCarouselItems('#next_classes_inner'),'#next_classes_inner','#carousel_next_classes')
}
if(width>=768 && width<1000){
console.log("only two")
var title=jQuery('.title')
if(title.hasClass('display-2')){
title.removeClass('display-2')
title.addClass('display-3')
}
else{
title.removeClass('display-4')
title.addClass('display-3')
}
resizeAlgorithm(2,getCarouselItems('#today_classes_inner'),'#today_classes_inner','#carousel_today_classes')
resizeAlgorithm(2,getCarouselItems('#week_classes_inner'),'#week_classes_inner','#carousel_week_classes')
resizeAlgorithm(2,getCarouselItems('#next_classes_inner'),'#next_classes_inner','#carousel_next_classes')
}
if(width<768){
console.log("only one")
var title=jQuery('.title')
if(title.hasClass('display-3')){
title.removeClass('display-3')
title.addClass('display-4')
}
if(title.hasClass('display-2')){
title.removeClass('display-2')
title.addClass('display-4')
}
resizeAlgorithm(1,getCarouselItems('#today_classes_inner'),'#today_classes_inner','#carousel_today_classes')
resizeAlgorithm(1,getCarouselItems('#week_classes_inner'),'#week_classes_inner','#carousel_week_classes')
resizeAlgorithm(1,getCarouselItems('#next_classes_inner'),'#next_classes_inner','#carousel_next_classes')
}
})
$(document).ready(function(){
// var worker=new Worker('js/updater.js')
//
//
// worker.addEventListener('message',function(){
// console.log('worker called')
// })
//
// window.setInterval(worker.postMessage('start'),20000)
})
</script>
<div class="container-fluid" style=" margin-top: 30px; margin-bottom: 0px; background-color:#424949;" align="middle">
<p> </p>
<div class="col" align="middle" style="margin-top:30px;">
<img height="80" width="200" src=logo.png>
<h6 style="color:white; font-weight:100;">2018 - All rights reserved ©</h6>
<p> </p>
</div>
</div>
</body>
<script>
$(document).ready(setNavbar())
</script>
</html>