-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsubmit.html
450 lines (365 loc) · 20.7 KB
/
submit.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
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Inspect Element 1.0 | IEEE SIESGST & CSI SIESGST</title>
<!-- Meta tag Keywords -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8" />
<meta name="description" content="Theme: Sub-Nautica">
<meta name="keywords" content="IEEE, ieee, sies, gst, siesgst, official, student, website, live, events">
<meta name="author" content="IEEE SIES GST Student Chapter">
<!--whatsapp and fb-->
<meta property="og:title" content="Inspect Element 1.0 | IEEE SIESGST & CSI SIESGST" />
<meta property="og:description" content="Theme: Sub-Nautica" />
<meta property="og:url" content="https://ieeesiesgst.in/submit" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://ieeesiesgst.in/images/ieeeicon.png" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="512" />
<meta property="og:image:height" content="512" />
<meta property="og:image:alt" content="Theme: Sub-Nautica" />
<!--twitter-->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Inspect Element 1.0 | IEEE SIESGST & CSI SIESGST" />
<meta name="twitter:description" content="Theme: Sub-Nautica" />
<meta name="twitter:image" content="https://ieeesiesgst.in/images/ieeeicon.png" />
<!-- Chrome, Firefox OS and Opera -->
<meta name="theme-color" content="#000">
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#000">
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-status-bar-style" content="#000">
<!-- //Meta tag Keywords -->
<!-- Custom-Files -->
<!-- CSS only -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<!-- JS, Popper.js, and jQuery -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js" 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>
<!-- Bootstrap-Core-CSS -->
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<!-- Style-CSS -->
<!-- font-awesome-icons -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- //font-awesome-icons -->
<!-- /Fonts -->
<link href="//fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900" rel="stylesheet">
<link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900" rel="stylesheet">
<!-- //Fonts -->
<link rel="shortcut icon" href="images/favicon.png">
<link rel="icon" href="images/favicon.png">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<script type="text/javascript">
var currentOffset = new Date().getTimezoneOffset();
var ISTOffset = 330;
const countDownDate = new Date(new Date("Dec 4, 2020 12:00:00").getTime() - (ISTOffset + currentOffset)*60000).getTime();
function checkMail() {
var serial = $('#form').serializeArray();
var serialJSON = {};
for(var i=0; i<serial.length; i++)
{
if(serial[i].value != "")
{
serialJSON[serial[i].name] = serial[i].value;
}
else
{
alert('Please fill all details!');
return;
}
}
if(document.getElementById('team').checked)
{
serialJSON['num'] = '2';
}
else
{
serialJSON['num'] = '1';
serialJSON['ins2'] = 'N.A.';
}
serialJSON['loc'] = window.top.location.href;
document.getElementById('submit-form').innerHTML = "Submitting";
document.getElementById('submit-form').setAttribute('disabled', '');
document.getElementById('pleasewait').style.display = 'block';
document.getElementById('sub-done').style.display = 'none';
$.ajax({
url: "https://script.google.com/macros/s/AKfycbztYQHnUyH4yUHKjXAicnymKIWXjrs49UobM3X37BhTfrmkVbGs/exec",
type: 'POST',
data: serialJSON,
success: function(res)
{
if(res.status == 0)
{
req_error();
}
else if(res.status == 1)
{
alert('Invalid User ID. Please check your User ID again.');
}
else if(res.status == 2)
{
alert('You have entered incorrect password. Please recheck your password.');
}
else if(res.status == 3)
{
if(res.num == '2')
{
alert('You have 2 members in your team. You have provided only 1 Instagram username');
document.getElementById('team').checked = true;
team_entry(document.getElementById('team'));
}
else
{
alert('You have 1 member in your team. You have provided 2 Instagram usernames');
document.getElementById('team').checked = false;
team_entry(document.getElementById('team'));
}
}
else if(res.status == 4)
{
req_fail();
}
else if(res.status == 5)
{
req_success();
}
else
{
req_error();
}
},
error: function(res){req_error();}
});
}
function req_success() {
document.getElementById('form').remove();
document.getElementById('success').style.display = 'block';
window.scroll(0, (document.getElementById('success').getBoundingClientRect().top + window.scrollY - 90));
}
function req_fail() {
document.getElementById('submit-form').innerHTML = "Submit";
document.getElementById('submit-form').removeAttribute('disabled');
document.getElementById('pleasewait').style.display = 'none';
document.getElementById('sub-done').style.display = 'block';
}
function req_error() {
document.getElementById('submit-form').innerHTML = "Submit";
document.getElementById('submit-form').removeAttribute('disabled');
document.getElementById('pleasewait').style.display = 'none';
alert('There was some server error!\nPlease try again or contact our team.\nPlease disable any Antivirus Protection Extension/Plugin that may block requests.\nSorry for inconvenience :(');
}
function team_entry(x) {
if(x.checked)
{
document.getElementsByTagName('fieldset')[0].removeAttribute('disabled');
document.getElementsByTagName('fieldset')[0].style.display = 'block';
}
else
{
document.getElementsByTagName('fieldset')[0].setAttribute('disabled','');
document.getElementsByTagName('fieldset')[0].style.display = 'none';
}
}
</script>
</head>
<body>
<!-- mian-content -->
<div class="main-banner inner" id="home">
<!-- header -->
<header class="header">
<div class="container-fluid px-lg-5">
<!-- nav -->
<nav class="py-4">
<div id="logo">
<h1> <a href="https://ieeesiesgst.in"><img id="ielogo" src="images/ieeesiesblack.png"></a></h1>
</div>
<label for="drop" class="toggle">Menu</label>
<input type="checkbox" id="drop" />
<ul class="menu mt-2">
<li><a href="https://ieeesiesgst.in">Home</a></li>
<li><a href="about.html">About</a></li>
<li class="active"><a href="events.html" style="text-shadow: 0px 0px 4px #000 !important;">Events</a></li>
<li>
<!-- First Tier Drop Down -->
<label for="drop-2" class="toggle">Explore <span class="fa fa-angle-down" aria-hidden="true"></span> </label>
<a href="#">Explore <span class="fa fa-angle-down" aria-hidden="true"></span></a>
<input type="checkbox" id="drop-2" />
<ul>
<li><a href="gallery.html">Gallery</a></li>
<li><a href="achievements.html">Achievements</a></li>
<li><a href="wie.html">WIE</a></li>
<li><a href="mtts.html">MTT-S</a></li>
<li><a href="cs.html">CS</a></li>
<li><a href="techopedia/index.html">Techopedia 9.0</a></li>
</ul>
</li>
<li><a href="team.html">Our Team</a></li>
<li><a href="contact.html">Contact</a></li>
<li><div id="google_translate_element"></div>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
}
</script>
<script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script></li>
</ul>
</nav>
<!-- //nav -->
</div>
</header>
<!-- //header -->
</div>
<section class="collection pb-lg-4 py-md-3 py-sm-3 py-3">
<div class="container">
<div class="py-md-4 py-sm-4 py-3">
<h4 class="tittle text-center pb-2 d-sm-block d-none">IEEE SIESGST & CSI SIESGST</h4>
<h5 class="tittle text-center pb-2 d-sm-none d-block">IEEE SIESGST & CSI SIESGST</h5>
<h6 class="tittle text-center">presents</h6>
<h4 class="tittle text-center pb-2 heading">Inspect Element 1.0</h4>
<h6 class="tittle mb-0 text-center pb-2">Theme: Sub Nautica</h6>
<h6 id="timer-p" class="tittle mb-0 text-center pb-2"><span class="d-inline-block">Submission ends in</span> <span class="text-danger d-inline-block" id="timer"></span></h6>
<!-- <h6 class="tittle text-center pb-2">(Only for Second Year students)</h6> -->
</div>
<!--
<h5 class="tittle text-center mb-lg-5 pb-3">The deadline of the form has passed!<br>For further queries, <a href="https://wa.me/918080355395">Click to chat!</a></h5>
-->
<form class="ev_form" id="form" action="javascript:void(0);" autocomplete="off">
<div class="form-group">
<div class="form-required-show">
<span class="form-required">* is for required.</span>
</div>
<small class="form-text text-muted">Required for both, individual and team entry.</small>
<br>
<label for="username">User ID<span class="form-required"> *</span></label>
<input name="username" type="text" id="username" class="form-control" placeholder="Enter User ID" required>
<small class="form-text text-muted">Sent via email after registration.</small>
</br>
<label for="password">Password<span class="form-required"> *</span></label>
<input name="password" type="password" id="password" class="form-control" placeholder="Enter Password" required>
<small class="form-text text-muted">Sent via email after registration.</small>
<br>
<label for="gr">GitHub Repository Link<span class="form-required"> *</span></label>
<input name="gr" type="url" id="gr" class="form-control" placeholder="Enter Repository URL" required>
<br>
<label for="gp">GitHub Pages Link<span class="form-required"> *</span></label>
<input name="gp" type="url" id="gp" class="form-control" placeholder="Enter Deployment URL" required>
<br>
<label for="review">Please give us your valuable reviews about this competition<span class="form-required"> *</span></label>
<textarea rows="3" name="review" id="review" class="form-control" required></textarea>
<br>
<label for="sugg">Please give us your suggestions so that we can improve ourselves for further events<span class="form-required"> *</span></label>
<textarea rows="3" name="sugg" id="sugg" class="form-control" required></textarea>
<br>
<label for="ins1">Instagram Username<span class="form-required"> *</span></label>
<input name="ins1" type="text" id="ins1" class="form-control" required>
<small class="form-text text-muted">Results will be declared on our Instagram handles.</small>
<br>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="team" onchange="team_entry(this);">
<label class="form-check-label" for="team">
Participated as a team of 2.
</label>
</div>
<br>
<fieldset style="display: none;" disabled>
<label for="ins2">Instagram Username (Team Member)<span class="form-required"> *</span></label>
<input name="ins2" type="text" id="ins2" class="form-control" required>
<br>
</fieldset>
<label class="noshow form-required" id="sub-done">You have already submitted your data.<br>Contact the team or <a href="https://wa.me/919757468857">Click to message us</a> if this was a mistake.<br></label>
<button class="btn btn-danger ev_btn" type="submit" id="submit-form">Submit</button><br><small id="pleasewait" class="noshow form-required">Your response is being submitted. This may take upto 15 seconds. Please wait!</small>
</div>
</form>
<div class="ev_form noshow" id="success">
<h4 class="tittle text-center pb-2">Thank You!</h4>
<p class="text-center">Please check your mail for submission confirmation.<br>Results will be announced soon on our Instagram handles. So follow our Instagram handles and turn on post and story notifications.<br><u><b><a href="https://www.instagram.com/ieeesiesgst/">https://www.instagram.com/<wbr>ieeesiesgst/</a></b></u><br><u><b><a href="https://www.instagram.com/csisies/">https://www.instagram.com/<wbr>csisies/</a></b></u><br>If you haven't received the mail, please contact our team member or <a href="https://wa.me/919757468857">Click to message us</a>.<br>Thank You for showing interest in Inspect Element 1.0</p>
</div>
</div>
</section>
<script type="text/javascript">
document.getElementById('form').onsubmit = function() {
checkMail();
return false;
}
</script>
<!--footer -->
<footer>
<section class="footer footer_1its py-5">
<div class="container py-md-4">
<div class="row footer-top mb-md-5 mb-4">
<div class="col-lg-4 col-md-6 footer-grid_section_1its">
<div class="footer-title-w3ls">
<h3>Reach Out to Us</h3>
</div>
<div class="footer-text">
<p><b>Address</b> : SIES Graduate School of Technology, Plot 1-C D & E, Sector-V, Navi Mumbai,
Maharashtra 400706</p>
<p><b>Phone</b> : +91 9167923446</p>
<p><b>Email</b> : <a href="mailto:ieee@siesgst.ac.in">ieee@siesgst.ac.in</a></p>
</div>
</div>
<div class="col-lg-4 col-md-6 mt-md-0 mt-4 footer-grid_section_1its">
<div class="footer-title-w3ls">
<h3>Catch On</h3>
</div>
<p>Always Open on following Social sites, feel free to check out.</p>
<ul class="social_section_1info">
<li class="mb-2 instagram"><a href="https://www.instagram.com/ieeesiesgst/"><span class="fa fa-instagram mr-1"></span>Instagram</a></li>
<li class="mb-2 youtube"><a href="https://www.youtube.com/channel/UCXAeBcDQQBiuVtzn4ke-Xsw"><span class="fa fa-youtube-play mr-1"></span>YouTube</a></li>
<li class="mb-2 facebook"><a href="https://m.facebook.com/ieeesiesgstofficial/"><span class="fa fa-facebook mr-1"></span>Facebook</a></li>
<li class="mb-2 linkedin"><a href="https://www.linkedin.com/mwlite/company/ieee-gst"><span class="fa fa-linkedin mr-1"></span>LinkedIn</a></li>
<li class="mb-2 github"><a href="https://github.com/ieeesiesgst"><span class="fa fa-github mr-1"></span>GitHub</a></li>
</ul>
</div>
<div class="col-lg-4 col-md-12 mt-lg-0 mt-4 col-sm-12 footer-grid_section_1its">
<div class="footer-title-w3ls">
<h3>Newsletter</h3>
</div>
<div class="footer-text">
<p>By subscribing to our mailing list you will always get latest news and updates from us.</p>
<form action="https://docs.google.com/forms/u/1/d/e/1FAIpQLSfRha9CA1euCfDGVMFK6Z7V0MzWCQV5p6KAOFcHi7L4lj_LMA/formResponse" target="_self" method="POST">
<input type="email" name="entry.1307177627" id="newsletter" placeholder="Enter your email..." required="">
<button class="btn1 btn"><span class="fa fa-paper-plane-o" aria-hidden="true"></span></button>
<div class="clearfix"> </div>
</form>
</div>
</div>
</div>
<div class="move-top-w3layouts text-center mt-3">
<a href="#home" class="move-top"> <span class="fa fa-angle-up mb-3" aria-hidden="true"></span></a>
</div>
</div>
</section>
</footer>
<!-- //footer -->
<script type="text/javascript">
var y = setInterval(function() {
// Get today's date and time
var now = new Date().getTime();
// Find the distance between now and the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Output the result in an element with id="demo"
document.getElementById("timer").innerHTML = days + "d " + hours + "h " + minutes + "m " + seconds + "s ";
+ minutes + "m " + seconds + "s ";
// If the count down is over, write some text
if (distance < 0) {
clearInterval(y);
document.getElementById("timer-p").innerHTML = '<span class="text-danger">Submission has Ended!</span>';
document.getElementById('form').remove();
}
}, 1000);
</script>
</body>
</html>