Minimize intro sidebar on mobile
This commit is contained in:
parent
aca5308bcd
commit
9029e47ce9
1 changed files with 12 additions and 0 deletions
|
@ -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();
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue