-
Notifications
You must be signed in to change notification settings - Fork 0
/
nav.php
65 lines (56 loc) · 2.76 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
<body>
<div class="w3-bar w3-small w3-teal w3-hide-small">
<a href="#" class="w3-bar-item w3-button"><i class="fa fa-facebook-official"></i></a>
<a href="#" class="w3-bar-item w3-button"><i class="fa fa-instagram"></i></a>
<a href="#" class="w3-bar-item w3-button"><i class="fa fa-snapchat"></i></a>
<a href="#" class="w3-bar-item w3-button"><i class="fa fa-flickr"></i></a>
<a href="#" class="w3-bar-item w3-button"><i class="fa fa-twitter"></i></a>
<a href="#" class="w3-bar-item w3-button"><i class="fa fa-linkedin"></i></a>
<a href="#" class="w3-bar-item w3-button w3-right"><b>rishabhjaishwal7@gmail.com</b></a>
</div>
<!-- Header -->
<header class="container-fluid w3-center w3-border-bottom w3-border-4 w3-border-grey ">
<h1 class="w3-xxxlarge w3-text-teal"><b>Rishabh Jaishwal</b></h1>
<h6 class="w3-text-teal">Welcome to the website for <span class="w3-tag w3-teal">Code Hub</span></h6>
</header>
<div class="w3-bar w3-teal w3-text-white w3-card-2" id="myNavbar">
<a href="index.php" class="w3-bar-item w3-button w3-wide"><i><b>Rishabh</b></i><b>Jaishwal</b><var>#</var></a>
<!-- Right-sided navbar links -->
<div class="w3-right w3-hide-small ">
<a href="index.php" class="w3-bar-item w3-button hvr-grow">HOME</a>
<a href="login.php" class="w3-bar-item w3-button hvr-grow"><i class="fa fa-bar-user"></i> LOGIN</a>
</div>
<!-- Hide right-floated links on small screens and replace them with a menu icon -->
<a href="javascript:void(0)" class="w3-bar-item w3-button w3-right w3-hide-large w3-hide-medium" onClick="w3_open()">
<i class="fa fa-bars"></i>
</a>
</div>
</div>
<!-- Sidebar on small screens when clicking the menu icon -->
<nav class="w3-sidebar w3-bar-block w3-light-gray w3-text-black w3-card-2 w3-animate-left w3-hide-medium w3-hide-large" style="display:none" id="mySidebar">
<a href="javascript:void(0)" onClick="w3_close()" class="w3-bar-item w3-button w3-large w3-padding-16">Close</a>
<a href="login.php" onClick="w3_close()" class="w3-bar-item w3-button">Login</a>
</nav>
<script>
// Toggle between showing and hiding the sidebar when clicking the menu icon
var mySidebar = document.getElementById("mySidebar");
function w3_open() {
if (mySidebar.style.display === 'block') {
mySidebar.style.display = 'none';
} else {
mySidebar.style.display = 'block';
}
}
// Close the sidebar with the close button
function w3_close() {
mySidebar.style.display = "none";
}
function myFunction() {
var x = document.getElementById("demo");
if (x.className.indexOf("w3-show") == -1) {
x.className += " w3-show";
} else {
x.className = x.className.replace(" w3-show", "");
}
}
</script>