assets/js/theme/src/all.js in kcc-gem-theme-1.33.15 vs assets/js/theme/src/all.js in kcc-gem-theme-1.34.15
- old
+ new
@@ -1,22 +1,20 @@
import footerDate from './footerDate.js';
-import searchToggle from './searchToggle.js';
import lazyLoad from './lazyLoad.js';
import walkText from './walkText.js';
import initSliders from './sliders.js';
-import moveSearchIcon from './moveSearchIcon.js';
-import highlightNav from './highlightCurrentNav.js';
import watchForMenuClicks from './translate.js';
-import closeMenuOnClick from './closeMenuOnClick.js';
import accordion from './accordion.js';
import wrapPowerText from './wrapPowerText.js';
-//import './babelTest.js';
//import test from './test.js';
document.addEventListener('DOMContentLoaded', function() {
- highlightNav();
- moveSearchIcon();
+ wrapPowerText();
+ initSliders();
+ walkText(document.body);
+ footerDate();
+ lazyLoad();
watchForMenuClicks();
// polyfill for Element.closest() b/c IE can't handle an anchor.match() when the anchor has another element inside it (Like spans used for BS4 menu toggler)
if (!Element.prototype.matches) {
Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
}
@@ -30,15 +28,7 @@
el = el.parentElement || el.parentNode;
} while (el !== null && el.nodeType === 1);
return null;
};
}
- //test();
- wrapPowerText();
- initSliders();
- walkText(document.body);
- footerDate();
- lazyLoad();
accordion();
- searchToggle();
- closeMenuOnClick();
});