-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (43 loc) · 1014 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<html>
<head>
<html lang="en">
<meta charset="utf-8">
<title>
Main Page- Computational Str.Bio
</title>
<link rel="stylesheet" type="text/css" href="intro.css">
</head>
<body>
<h1>TEST</h1>
<div class="navbar">
<a href="./index.html>Home</a>
<div class="dropdown">
<button class="dropbtn">Biomolecules
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content" id="myDropdown">
<a href="./INTRO/DNA.html">DNA</a>
<a href="./INTRO/RNA.html">RNA</a>
<a href="./INTRO/Proteins.html">Protens</a>
<a href="./INTRO/LipidHormone.html">Lipids</a>
</div>
</div>
</div>
<script>
function myFunction(){
document.getElementByID("myDropdown:).classList.toggle("show");
}
window.onclick = function(e) {
if (!e.target.matches('.dropbtn')) {
var myDropdown = document.getElementById("myDropdown");
if (myDropdown.classList.contains('show')) {
myDropdown.classList.remove('show');
}
}
}
</script>
<h2>TEST</h2>
<h3>TEST</h3>
<p>test</p>
</body>
</html>