Sha256: 645d99f6efafc363f0e929a3a1a5256e595efecb8979e14a401f20dbd2bde98c
Contents?: true
Size: 1.09 KB
Versions: 13
Compression:
Stored size: 1.09 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 accordion from './accordion.js'; import wrapPowerText from './wrapPowerText.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; }; } accordion(); });
Version data entries
13 entries across 13 versions & 1 rubygems