-
Notifications
You must be signed in to change notification settings - Fork 6
/
events.html
665 lines (586 loc) · 30.3 KB
/
events.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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
<!doctype html>
<html lang="en">
<head>
<title>ACM | Events</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.14.0/css/all.css" integrity="sha384-HzLeBuhoNPvSl5KYnjx0BT+WB0QEEqLprO+NBkkk5gbc67FTaL7XIGa2w1L0Xbgc" crossorigin="anonymous" />
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" />
<link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;1,300&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&family=Roboto&family=Source+Sans+Pro&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" />
<!-- Styles -->
<link rel="stylesheet" href="./css/events.css">
<link rel="stylesheet" href="./css/normalize.css" />
<link rel="stylesheet" href="./css/queries.css" />
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg">
<a class="navbar-brand" href="index.html">CHITKARA ACM<small>Student Chapter</small></a>
<!-- navbar toggler -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#nav" aria-controls="nav"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navigation__icon">
</span>
</label>
</button>
<div class="collapse navbar-collapse flex-row-reverse" id="nav">
<ul class="navbar-nav">
<li class="nav-item mr-2">
<a class="nav-link" href="about.html">About Us</a>
</li>
<li class="nav-item mr-2">
<a class="nav-link" href="events.html">Events</a>
</li>
<li class="nav-item mr-2">
<a class="nav-link" href="officebearers.html">Office Bearers</a>
</li>
<li class="nav-item mr-2">
<a class="nav-link" href="gallery.html">Gallery</a>
</li>
<li class="nav-item mr-2">
<a class="nav-link" href="contactus.html">Contact</a>
</li>
</ul>
</div>
</nav>
<div class="hero-text-box">
<h1 class="heading">Events</h1>
<p id="hero-para">We organize techincal as well as fun events for the students of Chitkara University. We also organize workshops in which students can participate and work on latest technologies apart from their studies</p>
</div>
</header>
<div class="eventTp">
<center>
<h2>What do we have for you</h2>
</center>
</div>
<div class="page-content">
<div class="card">
<div class="content">
<h2 class="title">Workshops</h2>
</div>
</div>
<div class="card">
<div class="content">
<h2 class="title">Hackathons</h2>
</div>
</div>
<div class="card">
<div class="content">
<h2 class="title">Talk's</h2>
</div>
</div>
<div class="card">
<div class="content">
<h2 class="title">Seminars</h2>
</div>
</div>
</div>
<!-- / row -->
</section>
<!-- / projects -->
<div class="container-fluid">
<div class="row welcome text-center">
<div class="col-12">
<h1 id="timehead">ACM-YEARBOOK(2013-2020)</h1>
</div>
</div>
</div>
<div id="top"></div>
<div class="timeline2">
<ul>
<li data-aos="fade-left" data-aos-duration="1000" data-aos-delay="500">
<div>
<a href="#item01"><time>2013</time></a> At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium
<br>
</div>
<span class="time">
<span>Events</span><br>
<span>2013</span>
</span>
</li>
<li data-aos="fade-right" data-aos-duration="1000" data-aos-delay="500">
<div>
<a href="#item02"> <time>2014</time></a> Proin quam velit, efficitur vel neque vitae, rhoncus commodo mi. Suspendisse finibus mauris et bibendum molestie. Aenean ex augue, varius et pulvinar in, pretium non nisi.
</div>
<span class="time">
<span>Events</span><br>
<span>2014</span>
</span>
</li>
<li data-aos="fade-left" data-aos-duration="1000" data-aos-delay="500">
<div>
<a href="#item03"> <time>2015</time></a> Proin iaculis, nibh eget efficitur varius, libero tellus porta dolor, at pulvinar tortor ex eget ligula. Integer eu dapibus arcu, sit amet sollicitudin eros.
</div>
<span class="time">
<span>Events</span><br>
<span>2015</span>
</span>
</li>
<li data-aos="fade-right" data-aos-duration="1000" data-aos-delay="500">
<div>
<a href="#item04"> <time>2016</time></a> In mattis elit vitae odio posuere, nec maximus massa varius. Suspendisse varius volutpat mattis. Vestibulum id magna est.
</div>
<span class="time">
<span>Events</span><br>
<span>2016</span>
</span>
</li>
<li data-aos="fade-left" data-aos-duration="1000" data-aos-delay="500">
<div>
<a href="#item05"><time>2017</time></a> In mattis elit vitae odio posuere, nec maximus massa varius. Suspendisse varius volutpat mattis. Vestibulum id magna est.
</div>
<span class="time">
<span>Events</span><br>
<span>2017</span>
</span>
</li>
<li data-aos="fade-right" data-aos-duration="1000" data-aos-delay="500">
<div>
<a href="#item06"><time>2018</time></a> In mattis elit vitae odio posuere, nec maximus massa varius. Suspendisse varius volutpat mattis. Vestibulum id magna est.
</div>
<span class="time">
<span>Events</span><br>
<span>2018</span>
</span>
</li>
<li data-aos="fade-left" data-aos-duration="1000" data-aos-delay="500">
<div>
<a href="#item07"><time>2019</time> </a>In mattis elit vitae odio posuere, nec maximus massa varius. Suspendisse varius volutpat mattis. Vestibulum id magna est.
</div>
<span class="time">
<span>Events</span><br>
<span>2019</span>
</span>
</li>
<li data-aos="fade-right" data-aos-duration="1000" data-aos-delay="500">
<div>
<a href="#item08"><time>2020</time></a> Aenean condimentum odio a bibendum rhoncus. Ut mauris felis, volutpat eget porta faucibus, euismod quis ante.
</div>
<span class="time">
<span>Events</span><br>
<span>2020</span>
</span>
</li>
</ul>
</div>
<br>
<br>
<div id="item01" class="port">
<a href="#" class="close1"></a>
<div class="gallery1 mt-3">
<div class="e1">
<img src="css/images/event/img-1.jpg">
<div class="content1">
<div class="text1"><button class="btn btn-primary" data-toggle="modal" data-target="#event1">Event 1</button></div>
<!--Event 1 Modal-->
<div class="modal fade" id="event1" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalSignUpLabel">
Event 1
</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<center>
<p style="font-size: medium;">Chitkara ACM Student Chapter organized an Expert talk which was delivered by Mr Sarabjot Singh who has 9 years experience in field of Big Data and Hadoop and have special appreciation from INDIAN AIR FORCE on 27th
March 2019 at Chitkara University Punjab campus. We feel privileged that he came in our campus and it was such a wonderful and interesting seminar . More than 100 enthusiastic students participated in the successful
session. The event was a great success and it imparts and enhance the knowledge about the big data and hadoop.</p>
</center>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="e1">
<img src="css/images/event/img-2.jpg">
<div class="content1">
<div class="text2"><button class="btn btn-primary" data-toggle="modal" data-target="#event2">Event 2</button></div>
<div class="modal fade" id="event2" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalSignUpLabel">
Event 2
</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<center>
<p style="font-size: medium;">Chitkara ACM Student Chapter organized an Expert talk which was delivered by Mr Sarabjot Singh who has 9 years experience in field of Big Data and Hadoop and have special appreciation from INDIAN AIR FORCE on 27th
March 2019 at Chitkara University Punjab campus. We feel privileged that he came in our campus and it was such a wonderful and interesting seminar . More than 100 enthusiastic students participated in the successful
session. The event was a great success and it imparts and enhance the knowledge about the big data and hadoop.</p>
</center>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="e1">
<img src="css/images/event/img-3.jpg">
<div class="content1">
<div class="text3"><button class="btn btn-primary" data-toggle="modal" data-target="#event3">Event 3</button></div>
<div class="modal fade" id="event3" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalSignUpLabel">
Event 3
</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<center>
<p style="font-size: medium;">Chitkara ACM Student Chapter organized an Expert talk which was delivered by Mr Sarabjot Singh who has 9 years experience in field of Big Data and Hadoop and have special appreciation from INDIAN AIR FORCE on 27th
March 2019 at Chitkara University Punjab campus. We feel privileged that he came in our campus and it was such a wonderful and interesting seminar . More than 100 enthusiastic students participated in the successful
session. The event was a great success and it imparts and enhance the knowledge about the big data and hadoop.</p>
</center>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="gallery2 mt-3">
<div class="e1">
<img src="css/images/event/img-4.jpg">
<div class="content1">
<div class="text4"><button class="btn btn-primary" data-toggle="modal" data-target="#event4">Event 4</button></div>
<div class="modal fade" id="event4" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalSignUpLabel">
Event 4
</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<center>
<p style="font-size: medium;">Chitkara ACM Student Chapter organized an Expert talk which was delivered by Mr Sarabjot Singh who has 9 years experience in field of Big Data and Hadoop and have special appreciation from INDIAN AIR FORCE on 27th
March 2019 at Chitkara University Punjab campus. We feel privileged that he came in our campus and it was such a wonderful and interesting seminar . More than 100 enthusiastic students participated in the successful
session. The event was a great success and it imparts and enhance the knowledge about the big data and hadoop.</p>
</center>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="e1">
<img src="css/images/event/img-5.jpg">
<div class="content1">
<div class="text5"><button class="btn btn-primary" data-toggle="modal" data-target="#event5">Event 5</button></div>
<div class="modal fade" id="event5" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalSignUpLabel">
Event 5
</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<center>
<p style="font-size: medium;">Chitkara ACM Student Chapter organized an Expert talk which was delivered by Mr Sarabjot Singh who has 9 years experience in field of Big Data and Hadoop and have special appreciation from INDIAN AIR FORCE on 27th
March 2019 at Chitkara University Punjab campus. We feel privileged that he came in our campus and it was such a wonderful and interesting seminar . More than 100 enthusiastic students participated in the successful
session. The event was a great success and it imparts and enhance the knowledge about the big data and hadoop.</p>
</center>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="e1">
<img src="css/images/event/img-6.jpg">
<div class="content1">
<div class="text6"><button class="btn btn-primary" data-toggle="modal" data-target="#event6">Event 6</button></div>
<div class="modal fade" id="event6" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalSignUpLabel">
Event 6
</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<center>
<p style="font-size: medium;">Chitkara ACM Student Chapter organized an Expert talk which was delivered by Mr Sarabjot Singh who has 9 years experience in field of Big Data and Hadoop and have special appreciation from INDIAN AIR FORCE on 27th
March 2019 at Chitkara University Punjab campus. We feel privileged that he came in our campus and it was such a wonderful and interesting seminar . More than 100 enthusiastic students participated in the successful
session. The event was a great success and it imparts and enhance the knowledge about the big data and hadoop.</p>
</center>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- / row -->
</div>
<!-- / Item 02 -->
<!-- Item 02 -->
<div id="item02" class="port">
<a href="#" class="close1"></a>
<div class="row">
<div class="description">
<h1>2014</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis libero erat. Integer ac purus est. Proin erat mi, pulvinar ut magna eget, consectetur auctor turpis.</p>
</div>
<img src="https://cdn.dribbble.com/users/545884/screenshots/2883479/cover.jpg" alt="">
</div>
<!-- / row -->
</div>
<!-- / Item 02 -->
<div id="item03" class="port">
<a href="#" class="close1"></a>
<div class="row">
<div class="description">
<h1>2015</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis libero erat. Integer ac purus est. Proin erat mi, pulvinar ut magna eget, consectetur auctor turpis.</p>
</div>
<img src="https://cdn.dribbble.com/users/545884/screenshots/3981307/lorena2.png" alt="">
</div>
</div>
<!-- / row -->
</div>
<!-- / Item 02 -->
<div id="item04" class="port">
<a href="#" class="close1"></a>
<div class="row">
<div class="description">
<h1>2016</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis libero erat. Integer ac purus est. Proin erat mi, pulvinar ut magna eget, consectetur auctor turpis.</p>
</div>
<img src="https://cdn.dribbble.com/users/545884/screenshots/3981307/lorena2.png" alt="">
</div>
</div>
<!-- / row -->
</div>
<!-- / Item 02 -->
<div id="item05" class="port">
<a href="#" class="close1"></a>
<div class="row">
<div class="description">
<h1>2017</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis libero erat. Integer ac purus est. Proin erat mi, pulvinar ut magna eget, consectetur auctor turpis.</p>
</div>
<img src="https://cdn.dribbble.com/users/545884/screenshots/3981307/lorena2.png" alt="">
</div>
</div>
<!-- / row -->
</div>
<!-- / Item 02 -->
<div id="item06" class="port">
<a href="#" class="close1"></a>
<div class="row">
<div class="description">
<h1>2018</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis libero erat. Integer ac purus est. Proin erat mi, pulvinar ut magna eget, consectetur auctor turpis.</p>
</div>
<img src="https://cdn.dribbble.com/users/545884/screenshots/3981307/lorena2.png" alt="">
</div>
</div>
<!-- / row -->
</div>
<!-- / Item 02 -->
<div id="item07" class="port">
<a href="#" class="close1"></a>
<div class="row">
<div class="description">
<h1>2019</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis libero erat. Integer ac purus est. Proin erat mi, pulvinar ut magna eget, consectetur auctor turpis.</p>
</div>
<img src="https://cdn.dribbble.com/users/545884/screenshots/3981307/lorena2.png" alt="">
</div>
</div>
<!-- / row -->
</div>
<!-- / Item 02 -->
<div id="item08" class="port">
<a href="#" class="close1"></a>
<div class="row">
<div class="description">
<h1>2020</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis libero erat. Integer ac purus est. Proin erat mi, pulvinar ut magna eget, consectetur auctor turpis.</p>
</div>
<img src="https://cdn.dribbble.com/users/545884/screenshots/3981307/lorena2.png" alt="">
</div>
</div>
<!-- / row -->
</div>
<!-- / Item 02 -->
<img src="css/images/waveFooter.png" width="100%">
<footer id="footer">
<div class="row">
<h3 class="line">CONNECT SOCIALLY</h3>
<ul class="social-links">
<li>
<a href="#"> <i class="ion-social-facebook"></i> </a>
</li>
<li>
<a href="#"> <i class="ion-social-twitter"></i> </a>
</li>
<li>
<a href="#"> <i class="ion-social-googleplus"></i> </a>
</li>
<li>
<a href="#"> <i class="ion-social-instagram"></i> </a>
</li>
</ul>
</div>
<div class="info">
<table>
<thead>
<tr>
<td>
<a class="foot-links" href="about.html">About Us</a>
</td>
<td>
<a class="foot-links" href="events.html">Events</a>
</td>
<td>
<a class="foot-links" href="officebearers.html">Office Bearers</a>
</td>
<td>
<a class="foot-links1" href="gallery.html">Gallery</a>
</td>
</tr>
</thead>
</table>
</div>
<div class="row">
<p>
Copyright © 2020 by CHITKARA University. All rights reserved.
</p>
</div>
</footer>
<!-- Scripts -->
<!-- sticky navbar -->
<script>
const navbar = document.querySelector("nav"),
navposition = navbar.offsetTop;
document.addEventListener("scroll", () => {
if (window.pageYOffset > navposition) {
navbar.classList.add("sticky");
}
else {
navbar.classList.remove("sticky")
}
})
</script>
<script src="script.js" charset="utf-8" defer></script>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://codepen.io/MightyShaban/pen/eGaCf/"></script>
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script>
AOS.init();
</script>
<script>
$('.timeline2 li a ').click(function() {
var itemID = $(this).attr('href');
$('.timeline2').addClass('item_open');
$(itemID).addClass('item_open');
return false;
});
$('.close1').click(function() {
$('.port, .timeline2 ').removeClass('item_open');
return false;
});
// $(".timeline2 li a").click(function() {
// $('html, body').animate({
// scrollTop: parseInt($("#top").offset().top)
// }, 900);
// });
</script>
<script>
(function() {
'use strict';
// define variables
var timelines = document.querySelectorAll('.timeline2');
function debounce(func, wait, immediate) {
var timeout;
return function() {
var context = this,
args = arguments;
var later = function() {
timeout = null;
if (!immediate) func.apply(context, args);
};
var callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow) func.apply(context, args);
};
}
function callbackFunc() {
var h, timeline, li, rect, parent_rect, i, items;
for (h = 0; h < timelines.length; h++) {
timeline = timelines[h];
parent_rect = timeline.getBoundingClientRect();
items = timeline.querySelectorAll(".timeline2 li");
for (i = 0; i < items.length; i++) {
/*
if (isElementInViewport(items[i])) {
items[i].classList.add("in-view");
}
*/
li = items[i];
rect = li.getBoundingClientRect();
if ((rect.bottom <= (parent_rect.top + (rect.height / 2))) || (rect.top >= (parent_rect.bottom - (rect.height / 2)))) {
//debugger;
//li.style['background']='red';
li.classList.remove("in-view");
} else {
//li.style['background']='white';
li.classList.add("in-view");
}
}
}
}
var updateLayout = debounce(function(e) {
// Does all the layout updating here
callbackFunc();
}, 500); // Maximum run of once per 500 milliseconds
// listen for events
window.addEventListener("load", callbackFunc);
window.addEventListener("resize", updateLayout);
window.addEventListener("scroll", callbackFunc);
for (var h = 0; h < timelines.length; h++) {
var timeline = timelines[h];
timeline.addEventListener("scroll", callbackFunc);
}
})();
</script>
</body>
</html>