Difference between revisions of "Template:Team:Bielefeld-CeBiTec/JS"

m (test7)
m (test8)
Line 413: Line 413:
 
$('.sub-navbar-item').each(function(i, obj) {
 
$('.sub-navbar-item').each(function(i, obj) {
 
if ($($clickItem).hasClass("sub-navbar-item")) {
 
if ($($clickItem).hasClass("sub-navbar-item")) {
if ($(obj).is(":visible") && $(obj).hasClass("small")) {
+
/*if ($(obj).is(":visible") && $(obj).hasClass("small")) {
 
if ($totalWidth == 0) {
 
if ($totalWidth == 0) {
//$leftItem = obj;
+
$leftItem = obj;
 
}
 
}
//$totalWidth = $totalWidth + $(obj).width();
+
$totalWidth = $totalWidth + $(obj).width();
}
+
}*/
 
} else {
 
} else {
 
if ($(obj).is(":visible")) {
 
if ($(obj).is(":visible")) {
Line 460: Line 460:
 
resizeNavbar();
 
resizeNavbar();
 
}, 10);
 
}, 10);
 +
 +
  
  

Revision as of 14:41, 23 September 2017