1
1
console . log ( "This is ThetaHacks" ) ;
2
2
3
-
4
3
if ( / ^ ( (? ! c h r o m e | a n d r o i d ) .) * s a f a r i / i. test ( navigator . userAgent ) ) {
5
4
// Special iPad css
6
5
$ ( "head" ) . append (
7
6
'<link rel="stylesheet" type="text/css" href="css/ipad.css">'
8
7
) ;
9
- document . getElementById ( ' banner' ) . style . display = "block" ;
8
+ document . getElementById ( " banner" ) . style . display = "block" ;
10
9
}
11
10
12
-
13
-
14
- window . mobileCheck = function ( ) {
11
+ window . mobileCheck = function ( ) {
15
12
let check = false ;
16
- ( function ( a ) { if ( / ( a n d r o i d | b b \d + | m e e g o ) .+ m o b i l e | a v a n t g o | b a d a \/ | b l a c k b e r r y | b l a z e r | c o m p a l | e l a i n e | f e n n e c | h i p t o p | i e m o b i l e | i p ( h o n e | o d ) | i r i s | k i n d l e | l g e | m a e m o | m i d p | m m p | m o b i l e .+ f i r e f o x | n e t f r o n t | o p e r a m ( o b | i n ) i | p a l m ( o s ) ? | p h o n e | p ( i x i | r e ) \/ | p l u c k e r | p o c k e t | p s p | s e r i e s ( 4 | 6 ) 0 | s y m b i a n | t r e o | u p \. ( b r o w s e r | l i n k ) | v o d a f o n e | w a p | w i n d o w s c e | x d a | x i i n o / i. test ( a ) || / 1 2 0 7 | 6 3 1 0 | 6 5 9 0 | 3 g s o | 4 t h p | 5 0 [ 1 - 6 ] i | 7 7 0 s | 8 0 2 s | a w a | a b a c | a c ( e r | o o | s \- ) | a i ( k o | r n ) | a l ( a v | c a | c o ) | a m o i | a n ( e x | n y | y w ) | a p t u | a r ( c h | g o ) | a s ( t e | u s ) | a t t w | a u ( d i | \- m | r | s ) | a v a n | b e ( c k | l l | n q ) | b i ( l b | r d ) | b l ( a c | a z ) | b r ( e | v ) w | b u m b | b w \- ( n | u ) | c 5 5 \/ | c a p i | c c w a | c d m \- | c e l l | c h t m | c l d c | c m d \- | c o ( m p | n d ) | c r a w | d a ( i t | l l | n g ) | d b t e | d c \- s | d e v i | d i c a | d m o b | d o ( c | p ) o | d s ( 1 2 | \- d ) | e l ( 4 9 | a i ) | e m ( l 2 | u l ) | e r ( i c | k 0 ) | e s l 8 | e z ( [ 4 - 7 ] 0 | o s | w a | z e ) | f e t c | f l y ( \- | _ ) | g 1 u | g 5 6 0 | g e n e | g f \- 5 | g \- m o | g o ( \. w | o d ) | g r ( a d | u n ) | h a i e | h c i t | h d \- ( m | p | t ) | h e i \- | h i ( p t | t a ) | h p ( i | i p ) | h s \- c | h t ( c ( \- | | _ | a | g | p | s | t ) | t p ) | h u ( a w | t c ) | i \- ( 2 0 | g o | m a ) | i 2 3 0 | i a c ( | \- | \/ ) | i b r o | i d e a | i g 0 1 | i k o m | i m 1 k | i n n o | i p a q | i r i s | j a ( t | v ) a | j b r o | j e m u | j i g s | k d d i | k e j i | k g t ( | \/ ) | k l o n | k p t | k w c \- | k y o ( c | k ) | l e ( n o | x i ) | l g ( g | \/ ( k | l | u ) | 5 0 | 5 4 | \- [ a - w ] ) | l i b w | l y n x | m 1 \- w | m 3 g a | m 5 0 \/ | m a ( t e | u i | x o ) | m c ( 0 1 | 2 1 | c a ) | m \- c r | m e ( r c | r i ) | m i ( o 8 | o a | t s ) | m m e f | m o ( 0 1 | 0 2 | b i | d e | d o | t ( \- | | o | v ) | z z ) | m t ( 5 0 | p 1 | v ) | m w b p | m y w a | n 1 0 [ 0 - 2 ] | n 2 0 [ 2 - 3 ] | n 3 0 ( 0 | 2 ) | n 5 0 ( 0 | 2 | 5 ) | n 7 ( 0 ( 0 | 1 ) | 1 0 ) | n e ( ( c | m ) \- | o n | t f | w f | w g | w t ) | n o k ( 6 | i ) | n z p h | o 2 i m | o p ( t i | w v ) | o r a n | o w g 1 | p 8 0 0 | p a n ( a | d | t ) | p d x g | p g ( 1 3 | \- ( [ 1 - 8 ] | c ) ) | p h i l | p i r e | p l ( a y | u c ) | p n \- 2 | p o ( c k | r t | s e ) | p r o x | p s i o | p t \- g | q a \- a | q c ( 0 7 | 1 2 | 2 1 | 3 2 | 6 0 | \- [ 2 - 7 ] | i \- ) | q t e k | r 3 8 0 | r 6 0 0 | r a k s | r i m 9 | r o ( v e | z o ) | s 5 5 \/ | s a ( g e | m a | m m | m s | n y | v a ) | s c ( 0 1 | h \- | o o | p \- ) | s d k \/ | s e ( c ( \- | 0 | 1 ) | 4 7 | m c | n d | r i ) | s g h \- | s h a r | s i e ( \- | m ) | s k \- 0 | s l ( 4 5 | i d ) | s m ( a l | a r | b 3 | i t | t 5 ) | s o ( f t | n y ) | s p ( 0 1 | h \- | v \- | v ) | s y ( 0 1 | m b ) | t 2 ( 1 8 | 5 0 ) | t 6 ( 0 0 | 1 0 | 1 8 ) | t a ( g t | l k ) | t c l \- | t d g \- | t e l ( i | m ) | t i m \- | t \- m o | t o ( p l | s h ) | t s ( 7 0 | m \- | m 3 | m 5 ) | t x \- 9 | u p ( \. b | g 1 | s i ) | u t s t | v 4 0 0 | v 7 5 0 | v e r i | v i ( r g | t e ) | v k ( 4 0 | 5 [ 0 - 3 ] | \- v ) | v m 4 0 | v o d a | v u l c | v x ( 5 2 | 5 3 | 6 0 | 6 1 | 7 0 | 8 0 | 8 1 | 8 3 | 8 5 | 9 8 ) | w 3 c ( \- | ) | w e b c | w h i t | w i ( g | n c | n w ) | w m l b | w o n u | x 7 0 0 | y a s \- | y o u r | z e t o | z t e \- / i. test ( a . substr ( 0 , 4 ) ) ) check = true ; } ) ( navigator . userAgent || navigator . vendor || window . opera ) ;
13
+ ( function ( a ) {
14
+ if (
15
+ / ( a n d r o i d | b b \d + | m e e g o ) .+ m o b i l e | a v a n t g o | b a d a \/ | b l a c k b e r r y | b l a z e r | c o m p a l | e l a i n e | f e n n e c | h i p t o p | i e m o b i l e | i p ( h o n e | o d ) | i r i s | k i n d l e | l g e | m a e m o | m i d p | m m p | m o b i l e .+ f i r e f o x | n e t f r o n t | o p e r a m ( o b | i n ) i | p a l m ( o s ) ? | p h o n e | p ( i x i | r e ) \/ | p l u c k e r | p o c k e t | p s p | s e r i e s ( 4 | 6 ) 0 | s y m b i a n | t r e o | u p \. ( b r o w s e r | l i n k ) | v o d a f o n e | w a p | w i n d o w s c e | x d a | x i i n o / i. test (
16
+ a
17
+ ) ||
18
+ / 1 2 0 7 | 6 3 1 0 | 6 5 9 0 | 3 g s o | 4 t h p | 5 0 [ 1 - 6 ] i | 7 7 0 s | 8 0 2 s | a w a | a b a c | a c ( e r | o o | s \- ) | a i ( k o | r n ) | a l ( a v | c a | c o ) | a m o i | a n ( e x | n y | y w ) | a p t u | a r ( c h | g o ) | a s ( t e | u s ) | a t t w | a u ( d i | \- m | r | s ) | a v a n | b e ( c k | l l | n q ) | b i ( l b | r d ) | b l ( a c | a z ) | b r ( e | v ) w | b u m b | b w \- ( n | u ) | c 5 5 \/ | c a p i | c c w a | c d m \- | c e l l | c h t m | c l d c | c m d \- | c o ( m p | n d ) | c r a w | d a ( i t | l l | n g ) | d b t e | d c \- s | d e v i | d i c a | d m o b | d o ( c | p ) o | d s ( 1 2 | \- d ) | e l ( 4 9 | a i ) | e m ( l 2 | u l ) | e r ( i c | k 0 ) | e s l 8 | e z ( [ 4 - 7 ] 0 | o s | w a | z e ) | f e t c | f l y ( \- | _ ) | g 1 u | g 5 6 0 | g e n e | g f \- 5 | g \- m o | g o ( \. w | o d ) | g r ( a d | u n ) | h a i e | h c i t | h d \- ( m | p | t ) | h e i \- | h i ( p t | t a ) | h p ( i | i p ) | h s \- c | h t ( c ( \- | | _ | a | g | p | s | t ) | t p ) | h u ( a w | t c ) | i \- ( 2 0 | g o | m a ) | i 2 3 0 | i a c ( | \- | \/ ) | i b r o | i d e a | i g 0 1 | i k o m | i m 1 k | i n n o | i p a q | i r i s | j a ( t | v ) a | j b r o | j e m u | j i g s | k d d i | k e j i | k g t ( | \/ ) | k l o n | k p t | k w c \- | k y o ( c | k ) | l e ( n o | x i ) | l g ( g | \/ ( k | l | u ) | 5 0 | 5 4 | \- [ a - w ] ) | l i b w | l y n x | m 1 \- w | m 3 g a | m 5 0 \/ | m a ( t e | u i | x o ) | m c ( 0 1 | 2 1 | c a ) | m \- c r | m e ( r c | r i ) | m i ( o 8 | o a | t s ) | m m e f | m o ( 0 1 | 0 2 | b i | d e | d o | t ( \- | | o | v ) | z z ) | m t ( 5 0 | p 1 | v ) | m w b p | m y w a | n 1 0 [ 0 - 2 ] | n 2 0 [ 2 - 3 ] | n 3 0 ( 0 | 2 ) | n 5 0 ( 0 | 2 | 5 ) | n 7 ( 0 ( 0 | 1 ) | 1 0 ) | n e ( ( c | m ) \- | o n | t f | w f | w g | w t ) | n o k ( 6 | i ) | n z p h | o 2 i m | o p ( t i | w v ) | o r a n | o w g 1 | p 8 0 0 | p a n ( a | d | t ) | p d x g | p g ( 1 3 | \- ( [ 1 - 8 ] | c ) ) | p h i l | p i r e | p l ( a y | u c ) | p n \- 2 | p o ( c k | r t | s e ) | p r o x | p s i o | p t \- g | q a \- a | q c ( 0 7 | 1 2 | 2 1 | 3 2 | 6 0 | \- [ 2 - 7 ] | i \- ) | q t e k | r 3 8 0 | r 6 0 0 | r a k s | r i m 9 | r o ( v e | z o ) | s 5 5 \/ | s a ( g e | m a | m m | m s | n y | v a ) | s c ( 0 1 | h \- | o o | p \- ) | s d k \/ | s e ( c ( \- | 0 | 1 ) | 4 7 | m c | n d | r i ) | s g h \- | s h a r | s i e ( \- | m ) | s k \- 0 | s l ( 4 5 | i d ) | s m ( a l | a r | b 3 | i t | t 5 ) | s o ( f t | n y ) | s p ( 0 1 | h \- | v \- | v ) | s y ( 0 1 | m b ) | t 2 ( 1 8 | 5 0 ) | t 6 ( 0 0 | 1 0 | 1 8 ) | t a ( g t | l k ) | t c l \- | t d g \- | t e l ( i | m ) | t i m \- | t \- m o | t o ( p l | s h ) | t s ( 7 0 | m \- | m 3 | m 5 ) | t x \- 9 | u p ( \. b | g 1 | s i ) | u t s t | v 4 0 0 | v 7 5 0 | v e r i | v i ( r g | t e ) | v k ( 4 0 | 5 [ 0 - 3 ] | \- v ) | v m 4 0 | v o d a | v u l c | v x ( 5 2 | 5 3 | 6 0 | 6 1 | 7 0 | 8 0 | 8 1 | 8 3 | 8 5 | 9 8 ) | w 3 c ( \- | ) | w e b c | w h i t | w i ( g | n c | n w ) | w m l b | w o n u | x 7 0 0 | y a s \- | y o u r | z e t o | z t e \- / i. test (
19
+ a . substr ( 0 , 4 )
20
+ )
21
+ )
22
+ check = true ;
23
+ } ) ( navigator . userAgent || navigator . vendor || window . opera ) ;
17
24
return check ;
18
25
} ;
19
26
20
27
console . log ( window . mobileCheck ( ) ) ;
21
28
22
- if ( window . mobileCheck ( ) ) {
29
+ if ( window . mobileCheck ( ) ) {
23
30
$ ( "head" ) . append (
24
31
'<link rel="stylesheet" type="text/css" href="css/ipad.css">'
25
32
) ;
26
- document . getElementById ( ' banner' ) . style . display = "block" ;
33
+ document . getElementById ( " banner" ) . style . display = "block" ;
27
34
}
28
35
29
-
30
36
function showSVG ( ) {
31
37
var path = document . querySelector ( ".mainpath" ) ;
32
38
var length = path . getTotalLength ( ) ;
@@ -142,7 +148,6 @@ $(window).resize(function () {
142
148
el . addClass ( "animate__fadeIn" ) ;
143
149
}
144
150
} ) ;
145
-
146
151
} ) ;
147
152
148
153
var scheduleDone = false ;
@@ -219,20 +224,17 @@ function shiftBackward() {
219
224
document . getElementById ( "day" ) . innerHTML = "Friday 1/15" ;
220
225
document . getElementById ( "schedSat" ) . style . display = "none" ;
221
226
document . getElementById ( "schedFri" ) . style . display = "block" ;
222
- }
223
- else if ( shiftDay == "Friday 1/15" ) {
227
+ } else if ( shiftDay == "Friday 1/15" ) {
224
228
shiftDay = "Monday 1/18" ;
225
229
document . getElementById ( "day" ) . innerHTML = "Monday 1/18" ;
226
230
document . getElementById ( "schedFri" ) . style . display = "none" ;
227
231
document . getElementById ( "schedMon" ) . style . display = "block" ;
228
- }
229
- else if ( shiftDay == "Monday 1/18" ) {
232
+ } else if ( shiftDay == "Monday 1/18" ) {
230
233
shiftDay = "Sunday 1/17" ;
231
234
document . getElementById ( "day" ) . innerHTML = "Sunday 1/17" ;
232
235
document . getElementById ( "schedMon" ) . style . display = "none" ;
233
236
document . getElementById ( "schedSun" ) . style . display = "block" ;
234
- }
235
- else if ( shiftDay == "Sunday 1/17" ) {
237
+ } else if ( shiftDay == "Sunday 1/17" ) {
236
238
shiftDay = "Saturday 1/16" ;
237
239
document . getElementById ( "day" ) . innerHTML = "Saturday 1/16" ;
238
240
document . getElementById ( "schedSun" ) . style . display = "none" ;
@@ -246,81 +248,90 @@ function shiftForward() {
246
248
document . getElementById ( "day" ) . innerHTML = "Sunday 1/17" ;
247
249
document . getElementById ( "schedSat" ) . style . display = "none" ;
248
250
document . getElementById ( "schedSun" ) . style . display = "block" ;
249
- }
250
- else if ( shiftDay == "Sunday 1/17" ) {
251
+ } else if ( shiftDay == "Sunday 1/17" ) {
251
252
shiftDay = "Monday 1/18" ;
252
253
document . getElementById ( "day" ) . innerHTML = "Monday 1/18" ;
253
254
document . getElementById ( "schedSun" ) . style . display = "none" ;
254
255
document . getElementById ( "schedMon" ) . style . display = "block" ;
255
- }
256
- else if ( shiftDay == "Monday 1/18" ) {
256
+ } else if ( shiftDay == "Monday 1/18" ) {
257
257
shiftDay = "Friday 1/15" ;
258
258
document . getElementById ( "day" ) . innerHTML = "Friday 1/15" ;
259
259
document . getElementById ( "schedMon" ) . style . display = "none" ;
260
260
document . getElementById ( "schedFri" ) . style . display = "block" ;
261
- }
262
- else if ( shiftDay == "Friday 1/15" ) {
261
+ } else if ( shiftDay == "Friday 1/15" ) {
263
262
shiftDay = "Saturday 1/16" ;
264
263
document . getElementById ( "day" ) . innerHTML = "Saturday 1/16" ;
265
264
document . getElementById ( "schedFri" ) . style . display = "none" ;
266
265
document . getElementById ( "schedSat" ) . style . display = "block" ;
267
266
}
268
267
}
269
268
270
-
271
-
272
269
$ ( ".volunteer-container" ) . flickity ( {
273
- cellAlign : ' left' ,
270
+ cellAlign : " left" ,
274
271
contain : true ,
275
- groupCells : ' 80%' ,
272
+ groupCells : " 80%" ,
276
273
autoPlay : 2500 ,
277
- wrapAround : true
274
+ wrapAround : true ,
278
275
} ) ;
279
276
280
277
function getTime ( countdownTime ) {
281
278
// Get today's date and time
282
279
var now = new Date ( ) . getTime ( ) ;
283
280
// Find the distance between now and the count down date
284
281
var distance = countdownTime - now ;
285
-
282
+
286
283
// Time calculations for days, hours, minutes and seconds
287
284
var days = Math . floor ( distance / ( 1000 * 60 * 60 * 24 ) ) ;
288
285
var hours = Math . floor ( ( distance % ( 1000 * 60 * 60 * 24 ) ) / ( 1000 * 60 * 60 ) ) ;
289
286
var minutes = Math . floor ( ( distance % ( 1000 * 60 * 60 ) ) / ( 1000 * 60 ) ) ;
290
287
var seconds = Math . floor ( ( distance % ( 1000 * 60 ) ) / 1000 ) ;
291
- return days + "d " + " • " + hours + "h " + " • " + minutes + "m " + " • " + seconds + "s " ;
288
+ return (
289
+ days +
290
+ "d " +
291
+ " • " +
292
+ hours +
293
+ "h " +
294
+ " • " +
295
+ minutes +
296
+ "m " +
297
+ " • " +
298
+ seconds +
299
+ "s "
300
+ ) ;
292
301
}
293
302
294
303
function getDistance ( countdownTime ) {
295
304
var now = new Date ( ) . getTime ( ) ;
296
305
distance = countdownTime - now ;
297
306
}
298
307
299
- var signupCountDown = setInterval ( function ( ) {
300
- var countDownDate = new Date ( "Jan 10 , 2021 12:00:00" ) . getTime ( ) - 8 ;
308
+ var signupCountDown = setInterval ( function ( ) {
309
+ var countDownDate = new Date ( "Jan 15 , 2021 12:00:00" ) . getTime ( ) - 8 ;
301
310
// Output the result in an element with id="registerBy"
302
- document . getElementById ( "registerBy" ) . innerHTML = "Registration ends in: " + getTime ( countDownDate ) ;
311
+ document . getElementById ( "registerBy" ) . innerHTML =
312
+ "Registration ends in: " + getTime ( countDownDate ) ;
303
313
304
- // If the count down is over, write some text
314
+ // If the count down is over, write some text
305
315
if ( getDistance ( countDownDate ) < 0 ) {
306
316
clearInterval ( countDown ) ;
307
317
document . getElementById ( "registerBy" ) . innerHTML = "Sign Ups Closed" ;
308
318
document . getElementById ( "gb10" ) . href = "https://thetahacks.tech" ;
309
319
document . getElementById ( "gb10" ) . innerHTML = "Sign Ups are Closed" ;
310
- document . getElementById ( "gb10" ) . style . display = ' none' ;
320
+ document . getElementById ( "gb10" ) . style . display = " none" ;
311
321
}
312
322
} , 1000 ) ;
313
323
314
- var eventCountDown = setInterval ( function ( ) {
324
+ var eventCountDown = setInterval ( function ( ) {
315
325
var amongUsHypeNight = new Date ( "Jan 15, 2021 21:00:00" ) . getTime ( ) - 8 ;
316
- var openingCermony = new Date ( "Jan 16, 2021 10:00:00" ) . getTime ( ) - 8 ;
326
+ var openingCermony = new Date ( "Jan 16, 2021 10:00:00" ) . getTime ( ) - 8 ;
317
327
var date = new Date ( ) ;
318
328
if ( date . getDay > 10 && date . getMonth == 1 && date . getFullYear == 2021 ) {
319
329
if ( getDistance ( amongUsHypeNight ) > 0 ) {
320
- document . getElementById ( "registerBy" ) . innerHTML = "Among Us Hype Night Starts in: " + getTime ( amongUsHypeNight ) ;
321
- }
322
- else if ( getDistance ( openingCermony ) > 0 ) {
323
- document . getElementById ( "registerBy" ) . innerHTML = "Opening Ceremony Starts in: " + getTime ( openingCermony ) ;
330
+ document . getElementById ( "registerBy" ) . innerHTML =
331
+ "Among Us Hype Night Starts in: " + getTime ( amongUsHypeNight ) ;
332
+ } else if ( getDistance ( openingCermony ) > 0 ) {
333
+ document . getElementById ( "registerBy" ) . innerHTML =
334
+ "Opening Ceremony Starts in: " + getTime ( openingCermony ) ;
324
335
}
325
336
}
326
- } , 1000 ) ;
337
+ } , 1000 ) ;
0 commit comments