m (test4) |
m (test5) |
||
Line 412: | Line 412: | ||
$('.sub-navbar-item').each(function(i, obj) { | $('.sub-navbar-item').each(function(i, obj) { | ||
− | + | 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(); | ||
− | } | + | }*/ |
− | } | + | } |
}); | }); | ||
/*$newPos = ($middle - ($totalWidth * 0.5)); | /*$newPos = ($middle - ($totalWidth * 0.5)); | ||
Line 460: | Line 460: | ||
resizeNavbar(); | resizeNavbar(); | ||
}, 10); | }, 10); | ||
− | |||
− | |||
− | |||
Revision as of 14:36, 23 September 2017