8
0
Fork 0

Javascript workaround for mobile nag bar

Dieser Commit ist enthalten in:
Peter McAtominey 2013-07-31 00:46:27 +02:00
Ursprung 7d984a2cce
Commit ab709b924d
1 geänderte Dateien mit 13 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -7,4 +7,17 @@ $(function() {
// Bootstrap Table Class // Bootstrap Table Class
$('table').addClass('table'); $('table').addClass('table');
var mobileNavWorkaround = function() {
if($(window).width()< 768) {
$('#sub-nav-collapse').css('height', '0px');
} else {
$('#sub-nav-collapse').css('height', 'auto');
}
}
$(window).resize(function() {
mobileNavWorkaround();
});
mobileNavWorkaround();
}); });