forked from anubhav5095/minor_project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header2.php
95 lines (79 loc) · 3.03 KB
/
header2.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
<?php
//include 'login2.php';
?>
<!Doctype Html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
.headerLinks,a{
font-size: 15px;
}
#headerLinks{
font-style: 15px;
}
.navbar{
padding: 0px;
margin:0px;
}
.header {
position: absolute;
width: 100%;
z-index: 10;
filter: blur(0px);
}
/* Set a style for all buttons */
button:hover {
opacity: 0.8;
}
/* Extra styles for the cancel button */
/* Center the image and position the close button */
</style>
</head>
<body>
<div class="header" id="navbar" style="position:absolute; " style="opacity:0.9; background-color:;">
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<ul class="nav navbar-nav" style="margin:0px;">
<li class="headerLinks" ><a href="home.php"><i class="fa fa-fw fa-home"> </i> Home</a></li>
<li class="headerLinks"><a href="#about"><i class="fa fa-fw fa-globe"> </i> About Us</a></li>
<li class="headerLinks"><a href="#contact"><i class="fa fa-fw fa-envelope"></i> Contact Us</a></li>
<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-user"></span> Sign Up <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="signUpRenter.php"><span class="glyphicon glyphicon-user"></span> Register as Renter</a></li>
<li><a href="signUpBuyer.php"><span class="glyphicon glyphicon-user"></span> Register as Buyer</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-user"></span> Login <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="admin\adminlogin.php"><span class="glyphicon glyphicon-user"> </span> Login Admin</a></li>
<li><a href="profile_renter/loginRenter.php"><span class="glyphicon glyphicon-user"> </span> Login as Renter</a></li>
<li><a href="profile_buyer/loginBuyer.php"><span class="glyphicon glyphicon-user"> </span> Login as Rentee</a></li>
</ul>
</li>
</div>
</nav>
</div>
<script>
window.onscroll = function() {myFunction()};
var navbar = document.getElementById("navbar");
var sticky = navbar.offsetTop;
function myFunction() {
if (window.pageYOffset >= sticky) {
navbar.classList.add("sticky")
} else {
navbar.classList.remove("sticky");
}
}
</script>
</br></br>
</body>
</html>