Minimize intro sidebar on mobile

This commit is contained in:
Eden Halperin 2013-11-07 10:46:55 -05:00
parent aca5308bcd
commit 9029e47ce9

View file

@ -303,4 +303,16 @@ $(document).ready(function () {
map.getCenter().lng.toFixed(precision)));
});
function removeSidebar() {
if ($(window).width() < 721) {
$('#sidebar').addClass("minimized");
}
}
$(window).resize(function() {
removeSidebar();
});
removeSidebar();
});