Sha256: f385498b673ab702e806662641a61d917a46ec9f50f40c15dc18d86619ea49c6

Contents?: true

Size: 1.07 KB

Versions: 32

Compression:

Stored size: 1.07 KB

Contents

import footerDate from './footerDate.js';
import lazyLoad from './lazyLoad.js';
import walkText from './walkText.js';
import initSliders from './sliders.js';
import watchForMenuClicks from './translate.js';
import wrapPowerText from './wrapPowerText.js';
//import ytEmbed from './ytEmbed.js';
//import test from './test.js';

document.addEventListener('DOMContentLoaded', function() {
  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;
  }

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

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
kcc-gem-theme-1.65.61 assets/js/theme/src/all.js
kcc-gem-theme-1.65.60 assets/js/theme/src/all.js
kcc-gem-theme-1.65.59 assets/js/theme/src/all.js
kcc-gem-theme-1.65.58 assets/js/theme/src/all.js
kcc-gem-theme-1.65.57 assets/js/theme/src/all.js
kcc-gem-theme-1.65.56 assets/js/theme/src/all.js
kcc-gem-theme-1.65.55 assets/js/theme/src/all.js
kcc-gem-theme-1.65.54 assets/js/theme/src/all.js
kcc-gem-theme-1.65.53 assets/js/theme/src/all.js
kcc-gem-theme-1.65.52 assets/js/theme/src/all.js
kcc-gem-theme-1.64.52 assets/js/theme/src/all.js
kcc-gem-theme-1.64.51 assets/js/theme/src/all.js
kcc-gem-theme-1.64.50 assets/js/theme/src/all.js
kcc-gem-theme-1.63.50 assets/js/theme/src/all.js
kcc-gem-theme-1.62.50 assets/js/theme/src/all.js
kcc-gem-theme-1.62.49 assets/js/theme/src/all.js
kcc-gem-theme-1.61.49 assets/js/theme/src/all.js
kcc-gem-theme-1.61.48 assets/js/theme/src/all.js
kcc-gem-theme-1.61.47 assets/js/theme/src/all.js
kcc-gem-theme-1.61.46 assets/js/theme/src/all.js