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

m (test6)
m (test7)
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")) {
/*if ($totalWidth == 0) {
+
if ($totalWidth == 0) {
$leftItem = obj;
+
//$leftItem = obj;
 
}
 
}
$totalWidth = $totalWidth + $(obj).width();*/
+
//$totalWidth = $totalWidth + $(obj).width();
 
}
 
}
 
}
 
}
Line 460: Line 460:
 
resizeNavbar();
 
resizeNavbar();
 
}, 10);
 
}, 10);
 
 
  
  

Revision as of 14:39, 23 September 2017