Skip to content

Commit b31ab5c

Browse files
committed
remove unnecessary js codes that handles css
css handling is done by css media query
1 parent 6967b77 commit b31ab5c

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

site/javascript/garden.js

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -163,22 +163,9 @@ Page.prototype = {
163163
that.sections.highlight();
164164
}, 10);
165165

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
166+
// Show menu for tablets and smart phones
178167
$('#show_menu').click(function (){
179-
var scrollTop = $.mobile ? that.window.scrollTop() : 0;
180-
181-
$mainNav.slideDown(300).css('top', scrollTop);
168+
$mainNav.slideDown(300);
182169
return false;
183170
});
184171

0 commit comments

Comments
 (0)