-
Notifications
You must be signed in to change notification settings - Fork 8
/
events.html
executable file
·252 lines (223 loc) · 10.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Events | NSS IIT Patna</title>
<!-- core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/animate.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/owl.carousel.min.css" rel="stylesheet">
<link href="css/icomoon.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/pricing.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
<link href="css/pricing.css" rel="stylesheet">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->
<link rel="shortcut icon" href="images/mainNSS/logo.ico">
<link rel="apple-touch-icon-precomposed" href="images/mainNSS/logo.jpeg">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
<link href='https://fonts.googleapis.com/css?family=Kaushan+Script' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700' rel='stylesheet' type='text/css'>
<style>
.page-title {}
@media screen and (max-width: 480px) {
.page-title {
background-image: url(images/mainNSS/plate2.jpg);
background-repeat: no-repeat;
background-size: 100% 100%;
height: 60px;
font-size: 10px;
}
.h2 {
font-size: 10px;
}
}
.blinking {
animation: blinkingText 1.2s infinite;
}
@keyframes blinkingText {
0% {
color: #4F01F9;
}
49% {
color: #01AEF9;
}
50% {
color: #FE020E;
}
99% {
color: #F95401;
}
100% {
color: #F90118;
}
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<!--/head-->
<body class="homepage">
<div id="loader"></div>
<style>
#loader {
position: fixed;
background: #000 url("cells/loader.gif") no-repeat center center;
background-size: cover;
z-index: 9999;
width: 100%;
height: 100vh;
overflow: visible;
}
</style>
<header id="header" class="sticky">
<nav class="navbar navbar-inverse" role="banner">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html"><img src="images/mainNSS/nssweb.png" alt="logo" style="width: 150px; height: auto"></a>
</div>
<div class="collapse navbar-collapse navbar-right">
<ul class="nav navbar-nav">
<li><a href="index.html">Home</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Get Involved<i class="fa fa-angle-down"></i></a>
<ul class="dropdown-menu">
<li><a href="about-us.html">About Us</a></li>
<li><a href="faq.html">Faqs</a></li>
<li><a href="./mag.html">Magazine 2k18-19</a></li>
<li><a href="https://docs.google.com/document/d/1EgpxEHza7NJGcw6CV3m7fv25ZJsbJpALqj1VH3ZOTl8/edit" target="_blank">Rules & Policies</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Units <i class="fa fa-angle-down"></i></a>
<ul class="dropdown-menu">
<li><a href="adhyayan.html">Adhyayan</a></li>
<li><a href="cells/cells.html?cell=technical">Technical Skills</a></li>
<li><a href="cells/cells.html?cell=rural">Rural Development</a></li>
<li><a href="cells/cells.html?cell=chetna">Chetna</a></li>
<li><a href="cells/cells.html?cell=teaching">Teaching</a></li>
<li><a href="cells/cells.html?cell=environment">Environmental</a></li>
<li><a href="prayatna/prayatna.html">Prayatna</a></li>
</ul>
</li>
<li><a href="team.html">Our Team</a></li>
<li class="active"><a href="events.html">Events</a></li>
<li><a href="portfolio.html">Gallery</a></li>
<li><a href="think_thank.html">Think-Thank</a></li>
<li><a href="./profile/login.php">Check-Hours</a></li>
<li><a href="./blood_request.php">Blood Request</a></li>
<li><a href="./help.html">Help!</a></li>
</ul>
</div>
</div>
<!--/.container-->
</nav>
<!--/nav-->
<div class="progress-container">
<div class="progress-bar" id="myBar"></div>
</div>
</header>
<!--/header-->
<div class="page-title" style=" background-image: url(images/mainNSS/plate2.jpg);background-repeat: no-repeat;background-size: 100% 100%;height:200px; margin-top: 87px">
<h2 style="font-size:9em; color:#000000; text-align:center;" class="blinking">EVENTS</h2>
</div>
<section id="pricing" style="background-image:url(images/mainNSS/plate5.jpg); color:white">
<div class="container">
<div class="row">
<div class="col-lg-12">
<ul class="timeline" id="eventshow">
</ul>
</div>
</div>
</div>
</section>
<iframe src="footer.html" frameborder="0" style="width: 100%; height:32vh"></iframe>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/main.js"></script>
<!-- Defining function for fixed header -->
<script>
window.onscroll = function() {
myFunction()
};
function myFunction() {
var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
var scrolled = (winScroll / height) * 100;
document.getElementById("myBar").style.width = scrolled + "%";
}
</script>
<div id="fb-root"></div>
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<!-- Importing jqueries and all those stuffs -->
<!-- Importing of jqueries and all those stuffs ends -->
<!-- JSON Data parsing -->
<script>
$.ajax({
url: 'https://nss.iitp.ac.in/events-cells.json',
type: 'GET',
dataType: "json",
success: displayAll
});
function displayAll(data) {
var x = "";
var jsons = data;
var contents = data.events;
var datas = "";
for (i in contents) {
datas = contents[i];
if (datas.active == "1") {
if (datas.id == "1") {
x += "<li class='timeline-straight' ><a href='" + datas.flink + "'> <div class='timeline-image'><img class=' rounded-circle img-fluid img_url' src=" + datas.img_url + " alt=''></div></a><div class='timeline-panel'><div class='timeline-heading'><h4 class='date'>" + datas.date + "</h4><h4 class='subheading'>" + datas.subheading + "</h4></div><div class='timeline-body'><p class='details'>" + datas.details + "</p></div></div></li>";
} else {
x += "<li class='timeline-inverted'><a href='" + datas.flink + "'> <div class='timeline-image'><img class=' rounded-circle img-fluid img_url' src=" + datas.img_url + " alt=''></div></a><div class='timeline-panel'><div class='timeline-heading'><h4 class='date'>" + datas.date + "</h4><h4 class='subheading'>" + datas.subheading + "</h4></div><div class='timeline-body'><p class='details'>" + datas.details + "</p></div></div></li>";
}
}
}
document.getElementById("eventshow").innerHTML = x;
function preloader() {
var loader = document.getElementById("loader");
function loadNow(opacity) {
if (opacity <= 0) {
loader.style.display = 'none';
} else {
loader.style.opacity = opacity;
window.setTimeout(function() {
loadNow(opacity - 0.01);
}, 5);
}
}
loadNow(1);
}
preloader();
}
</script>
</body>
</html>