Sha256: 05a37a18482ceec007f8d5c51245be239322fc144cd9425e0ffcad5dc8e21630

Contents?: true

Size: 1.4 KB

Versions: 21

Compression:

Stored size: 1.4 KB

Contents

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();
  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;
  }

  if (!Element.prototype.closest) {
    Element.prototype.closest = function(s) {
      var el = this;

      do {
        if (el.matches(s)) return el;
        el = el.parentElement || el.parentNode;
      } while (el !== null && el.nodeType === 1);
      return null;
    };
  }
  //test();
  wrapPowerText();
  initSliders();
  walkText(document.body);
  footerDate();
  lazyLoad();
  accordion();
  searchToggle();
  closeMenuOnClick();
});

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
kcc-gem-theme-1.33.15 assets/js/theme/src/all.js
kcc-gem-theme-1.33.14 assets/js/theme/src/all.js
kcc-gem-theme-1.33.13 assets/js/theme/src/all.js
kcc-gem-theme-1.31.12 assets/js/theme/src/all.js
kcc-gem-theme-1.30.12 assets/js/theme/src/all.js
kcc-gem-theme-1.30.11 assets/js/theme/src/all.js
kcc-gem-theme-1.30.10 assets/js/theme/src/all.js
kcc-gem-theme-1.30.9 assets/js/theme/src/all.js
kcc-gem-theme-1.29.9 assets/js/theme/src/all.js
kcc-gem-theme-1.28.9 assets/js/theme/src/all.js
kcc-gem-theme-1.28.8 assets/js/theme/src/all.js
kcc-gem-theme-1.28.7 assets/js/theme/src/all.js
kcc-gem-theme-1.27.7 assets/js/theme/src/all.js
kcc-gem-theme-1.26.6 assets/js/theme/src/all.js
kcc-gem-theme-1.25.6 assets/js/theme/src/all.js
kcc-gem-theme-1.25.5 assets/js/theme/src/all.js
kcc-gem-theme-1.24.5 assets/js/theme/src/all.js
kcc-gem-theme-1.23.5 assets/js/theme/src/all.js
kcc-gem-theme-1.22.5 assets/js/theme/src/all.js
kcc-gem-theme-1.21.5 assets/js/theme/src/all.js