You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 27, 2022. It is now read-only.
//console.log('Nav bar element nav-' + this.element.id + ' out of viewport - winInner:' + window.innerHeight + ' Element height:' + elemTarget.offsetHeight + ' new scroll pos:' + newPos);
143
140
}else{
144
141
newPos=topPos;
145
142
}
@@ -152,27 +149,12 @@ $(function () {
152
149
$('.adminnavlistelement').click(function(e){
153
150
e.preventDefault();
154
151
155
-
// console.log('nav clicked ' + this.id);
156
-
157
152
// on small screens, hide navbar after click
158
-
if($('div.admintopnavbar').is(':visible')){
153
+
if(window.matchMedia('screen and (max-width: 700px)').matches){
159
154
$('div.adminsidebar').toggle();
160
155
}
161
156
162
-
if(this.id=='nav-ref-main'){
163
-
location.assign('../');
164
-
165
-
returnfalse;
166
-
}
167
-
168
-
if(this.id=='nav-ref-logout'){
169
-
location.assign('../login/logout.php');
170
-
171
-
returnfalse;
172
-
}
173
-
174
157
consttarget=$(this).attr('href');
175
-
//console.log('target is ' + target.substring(1));
//console.log('Nav bar element ' + this.id + ' out of viewport - winInner:' + window.innerHeight + ' Element height:' + eT.offsetHeight + ' new scroll pos:' + newPos);
217
196
}
218
197
cp.scrollTop=newPos;
219
198
}
@@ -241,11 +220,33 @@ $(function () {
241
220
242
221
// menu toggle button for topnavbar (small screen sizes)
0 commit comments