-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
38 lines (34 loc) · 967 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="style.css">
<title>RAMMAT FORM</title>
</head>
<body>
<div class="dropdown">
<button onclick="myFunction()" class="dropbtn">SELECT GAME</button>
<div id="myDropdown" class="dropdown-content">
<a href="kabbadi.html">KABBADI</a>
<a href="sitolia.html">SITOLIA</a>
</div>
</div>
<script>
function myFunction() {
document.getElementById("myDropdown").classList.toggle("show");
}
window.onclick = function(event) {
if (!event.target.matches('.dropbtn')) {
var dropdowns = document.getElementsByClassName("dropdown-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
</script>
</body>
</html>