Sha256: d0383d74f3e138e4d82e67f7ae38fbaab0eb938a40b8c57008aec03e6fd7dcbc

Contents?: true

Size: 1.33 KB

Versions: 31

Compression:

Stored size: 1.33 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 regexText from './boldFont.js';
import moveSearchIcon from './moveSearchIcon.js';
import highlightNav from './highlightCurrentNav.js'
//import './babelTest.js';
//import test from './test.js';

document.addEventListener('DOMContentLoaded', function() {
  highlightNav();
  moveSearchIcon();
  // 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;
    };
  }
  const sliderContainer = document.querySelector('.hero-slider__slider');
  sliderContainer ? regexText(document.querySelector('.hero-slider__slider')) : null;
  //test();
  initSliders();
  walkText(document.body);
  footerDate();
  searchToggle();
  lazyLoad();
});

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
kcc-gem-theme-0.7.69 assets/js/theme/script/all.js
kcc-gem-theme-0.7.68 assets/js/theme/script/all.js
kcc-gem-theme-0.7.67 assets/js/theme/script/all.js
kcc-gem-theme-0.7.66 assets/js/theme/script/all.js
kcc-gem-theme-0.7.65 assets/js/theme/script/all.js
kcc-gem-theme-0.7.64 assets/js/theme/script/all.js
kcc-gem-theme-0.7.63 assets/js/theme/script/all.js
kcc-gem-theme-0.7.62 assets/js/theme/script/all.js
kcc-gem-theme-0.7.61 assets/js/theme/script/all.js
kcc-gem-theme-0.7.60 assets/js/theme/script/all.js
kcc-gem-theme-0.7.59 assets/js/theme/script/all.js
kcc-gem-theme-0.7.58 assets/js/theme/script/all.js
kcc-gem-theme-0.7.57 assets/js/theme/script/all.js
kcc-gem-theme-0.7.56 assets/js/theme/script/all.js
kcc-gem-theme-0.7.55 assets/js/theme/script/all.js
kcc-gem-theme-0.7.54 assets/js/theme/script/all.js
kcc-gem-theme-0.7.53 assets/js/theme/script/all.js
kcc-gem-theme-0.7.52 assets/js/theme/script/all.js
kcc-gem-theme-0.7.51 assets/js/theme/script/all.js
kcc-gem-theme-0.7.50 assets/js/theme/script/all.js