-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNavigation.php
90 lines (85 loc) · 3.6 KB
/
Navigation.php
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
<head>
<title>SARS-CoV2 Navigation</title>
<link rel="stylesheet" href="bootstrap.css" />
<link rel="stylesheet" type="text/css" href="style.css" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(function(){
$(".dropdown").hover(
function() {
$('.dropdown-menu', this).stop( true, true ).fadeIn("fast");
$(this).toggleClass('open');
$('b', this).toggleClass("caret caret-up");
},
function() {
$('.dropdown-menu', this).stop( true, true ).fadeOut("fast");
$(this).toggleClass('open');
$('b', this).toggleClass("caret caret-up");
});
});
function resetForm($form) {
$form.find('input:text, input:password, input:file, textarea').val('');
$form.find('select').prop('selectedIndex',0);
$form.find('input:radio, input:checkbox').removeAttr('checked').removeAttr('selected');
}
</script>
<style>
.panel-group {
margin-bottom: 0 !important;
}
.navbar {
margin-bottom: 0 !important;
}
.caret-up {
width: 0;
height: 0;
border-left: 4px solid rgba(0, 0, 0, 0);
border-right: 4px solid rgba(0, 0, 0, 0);
border-bottom: 4px solid;
display: inline-block;
margin-left: 2px;
vertical-align: middle;
}
.navbar-inverse .navbar-nav>.active>a {
color: #fff;
background-color: #5cb85c;
border-color: #4cae4c;
}
</style>
<div class="panel-group">
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="GenomeSearch.php">SARSNTDB</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="dropdown
<?php
if(basename($_SERVER['PHP_SELF'])=="GenomeSearch.php" || basename($_SERVER['PHP_SELF'])=="MutationsSearch.php")
{ echo "active"; }
else { echo ""; }
?>
">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
Search <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="GenomeSearch.php"> Genome </a></li>
<li><a href="MutationsSearch.php"> Mutations </a></li>
<li><a href="motifvisualizer.php"> Repeats </a></li>
</ul>
</li>
<li class="<?php if(basename($_SERVER['PHP_SELF'])=="reference.php"){ echo "active"; } else { echo ""; } ?>">
<a href="reference.php">Reference</a>
</li>
<li class="<?php if(basename($_SERVER['PHP_SELF'])=="help.php"){ echo "active"; } else { echo ""; } ?>">
<a href="help.php">Help</a>
</li>
</ul>
</div>
</div>
</nav>
</div>
</head>