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