We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6967b77 commit b31ab5cCopy full SHA for b31ab5c
site/javascript/garden.js
@@ -163,22 +163,9 @@ Page.prototype = {
163
that.sections.highlight();
164
}, 10);
165
166
- // Mobile, for position: fixed
167
- if ($.mobile) {
168
- var navs = $('#nav_mobile, #nav_main');
169
- navs.css('position', 'absolute');
170
- this.window.scroll(function(){
171
- navs.offset({
172
- top: that.window.scrollTop()
173
- });
174
175
- }
176
-
177
- // Show menu for tablets
+ // Show menu for tablets and smart phones
178
$('#show_menu').click(function (){
179
- var scrollTop = $.mobile ? that.window.scrollTop() : 0;
180
181
- $mainNav.slideDown(300).css('top', scrollTop);
+ $mainNav.slideDown(300);
182
return false;
183
});
184
0 commit comments