-
Notifications
You must be signed in to change notification settings - Fork 7
/
nav.php
125 lines (105 loc) · 3.78 KB
/
nav.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<nav
id="navbar-main"
class="
navbar navbar-main navbar-expand-lg
bg-default
navbar-light
position-sticky
top-0
shadow
py-0
"
>
<div class="container-fluid">
<ul class="navbar-nav navbar-nav-hover align-items-lg-center">
<li class="nav-item dropdown">
<a href="index.php" class="navbar-brand mr-lg-5 text-white">
<img src="assets/img/nav.png" />
</a>
</li>
</ul>
<button
class="navbar-toggler bg-white"
type="button"
data-toggle="collapse"
data-target="#navbar_global"
aria-controls="navbar_global"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon text-white"></span>
</button>
<div class="navbar-collapse collapse bg-default" id="navbar_global">
<div class="navbar-collapse-header">
<div class="row">
<div class="col-10 collapse-brand">
<a href="index.html">
<img src="assets/img/nav.png" />
</a>
</div>
<div class="col-2 collapse-close bg-danger">
<button
type="button"
class="navbar-toggler"
data-toggle="collapse"
data-target="#navbar_global"
aria-controls="navbar_global"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span></span>
<span></span>
</button>
</div>
</div>
</div>
<ul class="navbar-nav align-items-lg-center ml-auto topnav" id="nav">
<li class="nav-item" id="prediction">
<div class="dropdown show ">
<a class="nav-link dropdown-toggle text-white " href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="text-white nav-link-inner--text"
><i class="text-white fas fa-magic"></i> Prediction</span
>
</a>
<div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
<a class="dropdown-item" href="crop_prediction.php">Crop Prediction</a>
<a class="dropdown-item" href="yield_prediction.php">Yield Prediction</a>
<a class="dropdown-item" href="rainfall_prediction.php">Rainfall Prediction</a>
</div>
</div>
</li>
<li class="nav-item" id="recommendation">
<div class="dropdown show ">
<a class="nav-link dropdown-toggle text-white " href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="text-white nav-link-inner--text"
><i class="text-white fas fa-gavel"></i> Recommendation</span
>
</a>
<div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
<a class="dropdown-item" href="crop_recommendation.php">Crop Recommendation</a>
<a class="dropdown-item" href="fertilizer_recommendation.php">Fertilizer Recommendation</a>
</div>
</div>
</li>
</ul>
</div>
</div>
</nav>
<style>
.topnav a {
border-bottom: 3px solid transparent;
}
.topnav a:hover {
border-bottom: 3px solid red;
}
.topnav a.activa {
border-bottom: 3px solid red;
}
</style>
<script>
$("#nav li a").each(function() {
if (this.href == window.location.href) {
$(this).addClass("activaa");
}
});
</script>