diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 7ec09e3..6e6e579 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -3251,8 +3251,7 @@ $(document).ready(function() { }, 500); }); }); -// 這段要放在所有其他 ready 之前執行 -$(document).ready(function () { +setTimeout(function() { // 1. 先移除 main-content 裡面的重複 orbit-bar $('#main-content #orbit-bar').remove(); @@ -3264,17 +3263,17 @@ $(document).ready(function () { } // 3. resize 時也防止累積 - $(window).off('resize.orbitbar').on('resize.orbitbar', function () { + $(window).off('resize.orbitbar').on('resize.orbitbar', function() { if ($('.orbit-bar-title').length > 1) { $('.orbit-bar-title').not(':first').remove(); } }); -}); -setTimeout(function() { + // 4. 移除 orbit-bar-logo 裡面重複的 img $('.orbit-bar-logo').each(function() { $(this).find('img').not(':first').remove(); }); + }, 600); // 執行 member等高計算,目前改用flexbox故mark掉 by ika 20160105 // $(window).load(function() {