forked from students-alumni-cell-iitkgp/sac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
navbar.php
205 lines (181 loc) · 7.65 KB
/
navbar.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<script>
$(document).ready(function(){
if ($(window).width()>992) {
(function($){ $('#logo').show();
var $navbar= $('#nav'),
y_pos =$navbar.offset().top,
height = $navbar.height();
$(document).scroll(function(){
var scrollTop =$(this).scrollTop();
if (scrollTop>y_pos){$('#logo').hide();$navbar.addClass("navbar-fixed");$('.brand-logo').show(); $('.hide-on-med-and-down').addClass('right');
}
else if(scrollTop<=y_pos){$('#logo').show();$navbar.removeClass("navbar-fixed"); $('.brand-logo').hide(); $('.hide-on-med-and-down').removeClass('right');
}
});
})(jQuery, undefined); }
else{$('#logo').remove(); $('.brand-logo').show();
$('#nav').addClass("navbar-fixed")}
$('.dropdown-button').dropdown({
inDuration: 300,
outDuration: 225,
constrain_width: false,
hover: true, // Activate on hover
gutter: 0, // Spacing from edge
belowOrigin: true, // Displays dropdown below the button
alignment: 'left' // Displays dropdown with edge aligned to the left of button
});
});
</script>
<style> @media only screen and (max-width: 992px){
nav .brand-logo {
left: 87%;
-webkit-transform: translateX(-50%);
}
#switch{
display: none;
}
}
@media only screen and (max-width: 600px){
nav .brand-logo {
top: -10px;
left:77%;
}
}
@media only screen and (max-width: 400px){
nav .brand-logo {
top: -10px;
left:75%;
}
}
@media only screen and (max-width: 330px){
nav .brand-logo {
top: -10px;
left:62%;
}
}
.dropdown-content li {
text-align: center !important;
}
</style>
<div class="row" id="logo" style="background-color: white; margin-bottom: 0px; display: none;"><div class="col l12 m12 s12 center-align"><img style=" width:200px;" src="img/logo/sac_logo.png">
</div>
</div>
<div class="white" id="nav" style="margin-top: 0px;">
<ul id="events" class="dropdown-content" style="min-width: 200px;">
<li><a href="aam.php">Annual Alumni Meet</a></li>
<li><a href="sam.php">Student Alumni Meet</a></li>
<li><a href="guestlecture.php">Guest Lectures</a></li>
<li><a href="leadershipsummit.php">Leadership Summit</a></li>
<li><a href="alvida.php">Alvida</a></li>
</ul>
<ul id="initiatives" class="dropdown-content" style="min-width: 200px;">
<li><a href="mentorship.php">Mentorship Programme</a></li>
<li><a href="imprint.php">My Imprint</a></li>
<li><a href="sparc.php">SPARC</a></li>
</ul>
<ul id="publications" class="dropdown-content" style="min-width: 200px;">
<li><a href="yearbook.php">Yearbook</a></li>
<li><a href="yoy.php">Yearnings of Yore</a></li>
<!-- <li><a onclick="window.open('brochure.pdf')" target="_blank">SAMP Brochure</a></li> -->
</ul>
<ul id="sponsors" class="dropdown-content" style="min-width: 200px;">
<li><a href="sponsors2017.php">2017</a></li>
<li><a href="sponsors2016.php">2016</a></li>
<li><a href="sponsors2015.php">2015</a></li>
<li><a href="sponsors2014.php">2014</a></li>
<li><a href="sponsors2013.php">2013</a></li>
<li><a href="sponsors2012.php">2012</a></li>
</ul>
<nav>
<div class="nav-wrapper white">
<a href="index.php" class="brand-logo" style="display: none;"><img src="img/logo/sac_logo.png" width="180" height="70"></a>
<a href="#" data-activates="mobile-demo" class="button-collapse"><i class="material-icons">menu</i></a>
<div class="row">
<ul class="hide-on-med-and-down _textcolor center-align">
<li class="col l2"><a href="index.php">Home</a></li>
<li class="col l2"><a href="#!" class="dropdown-button" data-activates="events">Events</a></li>
<li class="col l2"><a id="drop1" class="dropdown-button" href="#!" data-activates="initiatives">Initiatives</a></li>
<li class="col l2"><a id="drop2" class="dropdown-button" href="#!" data-activates="publications" style="min-width: 100; margin-left: 0;">Publications</a></li>
<li class="col l2"><a href="team.php">The Team</a></li>
<li class="col l2"><a id="drop3" class="dropdown-button" href="#!" data-activates="sponsors">Sponsors</a></li>
<li></li>
</ul> </div>
<ul id="mobile-demo" class="side-nav">
<li><a href="index.php">Home</a></li>
<li class="no-padding">
<ul class="collapsible collapsible-accordion">
<li>
<a class="collapsible-header">Events<i class="mdi-navigation-arrow-drop-down"></i></a>
<div class="collapsible-body">
<ul>
<li><a href="aam.php">Annual Alumni Meet</a></li>
<li><a href="sam.php">Student Alumni Meet</a></li>
<li><a href="guestlecture.php">Guest Lectures</a></li>
<li><a href="leadershipsummit.php">Leadership Summit</a></li>
<li><a href="alvida.php">Alvida</a></li>
</ul>
</div></li></ul></li>
<li class="no-padding">
<ul class="collapsible collapsible-accordion">
<li>
<a class="collapsible-header">Initiatives<i class="mdi-navigation-arrow-drop-down"></i></a>
<div class="collapsible-body">
<ul>
<li><a href="mentorship.php">Mentorship Program</a></li>
<li><a href="imprint.php">My Imprint</a></li>
<li><a href="sparc.php">SPARC</a></li>
</ul>
</div></li></ul></li>
<li class="no-padding">
<ul class="collapsible collapsible-accordion">
<li>
<a class="collapsible-header" >Publications<i class="mdi-navigation-arrow-drop-down"></i></a>
<div class="collapsible-body">
<ul>
<li><a href="yearbook.php">Yearbook</a></li>
<li><a href="yoy.php">Yearnings of Yore</a></li>
</ul>
</div></li></ul></li>
<li><a href="team.php">The Team</a></li>
<li class="no-padding">
<ul class="collapsible collapsible-accordion">
<li>
<a class="collapsible-header">Our Sponsors<i class="mdi-navigation-arrow-drop-down"></i></a>
<div class="collapsible-body">
<ul>
<li><a href="sponsors2016.php">2016</a></li>
<li><a href="sponsors2015.php">2015</a></li>
<li><a href="sponsors2014.php">2014</a></li>
<li><a href="sponsors2013.php">2013</a></li>
<li><a href="sponsors2012.php">2012</a></li>
</ul>
</div></li></ul></li>
</ul>
</nav>
</div>
<!-- <div id="modal1" class="modal ">
<div class="modal-content">
<div class="row">
<form class="col s12 center-align" action="aam.php" method="POST">
<div class="row">
<h2>LOGIN</h2>
<div class="input-field col s12">
<i class="material-icons prefix">account_circle</i>
<input id="icon_prefix" type="email" class="validate" name="email">
<label for="icon_prefix">Email ID</label>
</div>
<div class="input-field col s12">
<i class="material-icons prefix">vpn_key</i>
<input id="icon_telephone" type="password" class="validate" name="password">
<label for="icon_telephone">Password</label>
</div>
<button class="btn-large waves-effect waves-light " type="submit" name="action" style="margin-top:15px; width:200px;">Log In
<i class="material-icons right">send</i>
</div>
</form>
</div>
</div>
<div class="modal-footer">
<a href="#!" class=" modal-action modal-close waves-effect waves-blue btn-flat">CLOSE</a>
</div>
</div> -->