generated from CodeChefVIT/template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathregNoSearch.html
215 lines (197 loc) · 11 KB
/
regNoSearch.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
<!DOCTYPE html>
<html lang="en">
<head>
<!--
_____ _ _____ _ __ __ _______ _______
/ ____| | | / ____| | / _| \ \ / /_ _|__ __|
| | ___ __| | ___| | | |__ ___| |_ _____\ \ / / | | | |
| | / _ \ / _` |/ _ \ | | '_ \ / _ \ _|______\ \/ / | | | |
| |___| (_) | (_| | __/ |____| | | | __/ | \ / _| |_ | |
\_____\___/ \__,_|\___|\_____|_| |_|\___|_| \/ |_____| |_|
-->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-4ESPQYMWGL"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-4ESPQYMWGL');
</script>
<!-- Meta Tags for SEO -->
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description"
content="View the results for the newly recruited Core Members from the recruitments of December 2020 for all domains.">
<meta name="keywords"
content="VTOP, VIT, Chapters, Clubs, Results, Teams, CET, Recruitments, Join, Congratulations, List, CET, Common Entry Test, CodeChef-VIT, codechef, Code Chef">
<meta name="author" content="Akshat Gupta">
<meta name="copyright" content="CodeChef-VIT">
<meta name="language" content="en">
<meta name="category" content="Recruitments">
<meta name="coverage" content="Worldwide">
<meta name="rating" content="General">
<meta name="og:email" content="[email protected]">
<meta name="og:country-name" content="India">
<meta name="og:region" content="Tamil Nadu, Vellore, Chennai, Delhi, Mumbai, Kolkatta, Bengaluru, Goa, Gurgaon">
<meta name="og:site_name" content="CodeChef-VIT Recruitment Results">
<meta property="og:type" content="website">
<meta property="og:title" content="CodeChef-VIT Recruitment Results">
<meta property="og:description"
content="View the results for the newly recruited Core Members from the recruitments of December 2020 for all domains.">
<meta property="og:site_name" content="CodeChef-VIT Recruitment Results">
<meta name="twitter:card" content="website">
<meta name="twitter:site" content="CodeChef-VIT Recruitment Results">
<meta name="twitter:title" content="CodeChef-VIT Recruitment Results">
<meta name="theme-color" content="#2880B9">
<meta property="og:image" itemprop="image" content="assets/img/favicon.jpg">
<meta name="twitter:description"
content="View the results for the newly recruited Core Members from the recruitments of December 2020 for all domains.">
<meta name="twitter:creator" content="@codechefvit">
<meta itemprop="name" content="CodeChef-VIT Recruitment Results">
<meta itemprop="description"
content="View the results for the newly recruited Core Members from the recruitments of December 2020 for all domains.">
<meta name="url" content="https://results.codechefvit.com/regNoSearch">
<meta property="og:url" content="https://results.codechefvit.com/regNoSearch">
<link rel="canonical" href="https://results.codechefvit.com/regNoSearch">
<!-- Linking Favicon, Apple Touch Icon, Font Awesome, Materialize & CSS -->
<link rel="icon" href="assets/img/favicon.jpg" type="image/jpg">
<link rel="apple-touch-icon" href="assets/img/apple-touch-icon.jpg" type="image/jpg">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
defer>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link rel="stylesheet" href="assets/css/spacing.css">
<link rel="stylesheet" href="assets/css/index.css">
<link rel="stylesheet" href="assets/css/tables.css">
<!-- Title -->
<title>Registration Number Search || CodeChef-VIT Recruitment Results</title>
<!-- No Script -->
<noscript>Please enable JavaScript to open this page.</noscript>
</head>
<body class="grey lighten-4">
<!-- Top Nav -->
<div class="navbar-fixed">
<nav>
<div class="nav-wrapper center">
<a href="/" class="center brand">Core 2020-21
</a>
</div>
</nav>
</div>
<!-- Main Content -->
<div class="container mb-5 mt-5">
<!-- Form -->
<div class="row mt-5">
<div class="w-100 w-md-50 mx-auto">
<div class="card white card-top-blue">
<div class="card-content">
<span class="card-title black-text">Enter your Registration Number</span>
<div name="regForm">
<div class="row">
<div class="input-field col s12">
<i class="material-icons prefix">account_circle</i>
<input id="regNo" name="regNo" type="text" class="validate"
pattern="[1-2][0-9][A-Za-z]{3}[0-9]{4}" required
title="Invalid Registration Number" style="text-transform:uppercase">
<label for="regNo">Registration Number</label>
</div>
<div class="center">
<button name="checkBtn" class="btn btn-result z-depth-0 waves-effect mt-3"
id="checkBtn" value="Check" href="#!">Check</button>
</div>
<div class="center mb-n3 mt-4">
<p id="result"></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="center mb-5">
<a href="/"><button class="btn btn-result z-depth-0 waves-effect" value="Go Back">Go
Back</button></a>
</div>
</div>
<!-- Loader -->
<div id="loader" class="show fullscreen"><svg class="circular" width="48px" height="48px">
<circle class="path-bg" cx="24" cy="24" r="22" fill="none" stroke-width="4" stroke="#eeeeee" />
<circle class="path" cx="24" cy="24" r="22" fill="none" stroke-width="4" stroke-miterlimit="10"
stroke="#107BE5" />
</svg></div>
<!-- Scripts -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src=" https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"
crossorigin="anonymous"></script>
<script src="assets/js/animations.js"></script>
<script src="assets/js/index.js"></script>
<!-- Button Click Function and Responses -->
<script>
$("#checkBtn").click(function () {
document.getElementById("checkBtn").disabled = true;
var regNo = document.getElementById("regNo").value;
var audioYep = new Audio('assets/music/sanandreas.mp3');
if (regNo.match(/[1-2][0-9][A-Za-z]{3}[0-9]{4}/)) {
var xh = new XMLHttpRequest();
xh.open(
"GET",
"assets/core.json",
true
);
xh.setRequestHeader("Content-Type", "application/json");
xh.send();
xh.onload = function () {
if (this.status == 200) {
var data = JSON.parse(this.responseText);
let counter = 0;
for (i = 0; i < data.length; i++) {
if (data[i].regNo == regNo.toUpperCase()) {
audioYep.play();
var funcs = [
leo,
winner,
passed
]
function execute() {
var i = Math.floor(Math.random() * funcs.length)
funcs.splice(i - 1, 1)[0]()
}
execute();
// M.toast({ html: 'Congratulations ' + data[i].name + '! You have been selected under the ' + data[i].domain + ' domain(s) 🎉' });
document.getElementById("result").innerHTML = 'Congratulations ' + data[i].name + '! You have been selected under the ' + data[i].domain + ' domain(s) 🎉';
counter++;
document.getElementById("checkBtn").disabled = false;
}
}
if (counter == 0) {
// M.toast({ html: 'We are really glad you applied to be a part of our family. Your application and interviews were amazing but unfortunately we cannot extend you an invite to CodeChef-VIT\'s core 😞' });
// M.toast({ html: 'You can still join us for our events, webinars, hackathons, projects and get mentorship. We are just a text away ✨' });
document.getElementById("result").innerHTML = 'We are really glad you applied to be a part of our family. Your application and interviews were amazing but unfortunately we cannot extend you an invite to CodeChef-VIT\'s core 😞<br><br> You can still join us for our events, webinars, hackathons, projects and get mentorship. We are just a text away ✨';
document.getElementById("checkBtn").disabled = false;
}
} else {
M.toast({ html: 'Something went wrong 😔' });
document.getElementById("checkBtn").disabled = false;
}
};
}
else {
M.toast({ html: 'Invalid Registration Number 😢' });
document.getElementById("checkBtn").disabled = false;
}
});
$(document).keypress(function (event) {
var keycode = (event.keyCode ? event.keyCode : event.which);
if (keycode == '13') {
$("#checkBtn").trigger('click');
}
});
</script>
</body>
</html>