-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (53 loc) · 1.46 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Ventura Registration</title>
<style>
.remove {
display: none;
}
</style>
</head>
<body>
<center>
<div id="nittCheck">
<form>
<p>Are you from NIT-T?</p>
<input type="radio" name="college" onclick="collegeCheck(this.value)" value="yes">YES
<input type="radio" name="college" onclick="collegeCheck(this.value)" value="no">NO<br>
</form>
</div>
<div id="nitt" class="remove">
<form>
<p>Have you filled the E-cell Commuity form?</p>
<input type="radio" name="community" onclick="communityCheck(this.value)" value="yes">YES
<input type="radio" name="community" onclick="communityCheck(this.value)" value="no">NO<br>
</form>
</div>
<div id="notNitt" class="remove">
<p>Welcome Non-NITTIAN</p>
</div>
</center>
</body>
<script>
function communityCheck(community) {
if(community === "yes") {
window.location = "http://localhost/ecFilled.html"
}
else {
window.location = "http://ecell-nitt.org/ec.html"
}
}
function collegeCheck(college) {
console.log(college);
if(college === "yes") {
nitt.style.display = 'block';
document.getElementById('nittCheck').style.display = 'none';
}
else {
notNitt.style.display = 'block';
document.getElementById('nittCheck').style.display = 'none';
}
}
</script>
</html>