-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainjs.js
56 lines (50 loc) · 1.6 KB
/
mainjs.js
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
var getlogin = document.getElementById("login");
var getsignup = document.getElementById("signup");
signup.style.display = "none";
document.getElementById('mainButL').style.backgroundColor="#f00";
function signup1()
{
getsignup.style.display="block";
getlogin.style.display="none";
document.getElementById('mainButS').style.backgroundColor="#f00";
document.getElementById('mainButL').style.backgroundColor="#006";
}
function login1()
{
getsignup.style.display="none";
getlogin.style.display="block";
document.getElementById('mainButS').style.backgroundColor="#006";
document.getElementById('mainButL').style.backgroundColor="#f00";
}
function myFunction1()
{
document.getElementById("myDropdown").classList.toggle("show");
}
window.onclick = function(e)
{
if (!e.target.matches('.dropbtn'))
{
var dropdowns = document.getElementsByClassName("dropdown-content");
for (var d = 0; d < dropdowns.length; d++)
{
var openDropdown = dropdowns[d];
if (openDropdown.classList.contains('show'))
{
openDropdown.classList.remove('show');
}
}
}
}
function hiddenform() {
if (document.getElementById("hostel_check").value == "yes") {
document.getElementById("hblock").style.display = "inline-block";
document.getElementById("hblock1").style.display = "inline-block";
} else {
document.getElementById("hblock").style.display = "none";
document.getElementById("hblock1").style.display = "none";
}
}
function foo()
{
document.getElementById('Box').style.display='inline-block';
}