FreesideWeb/internal/_includes/js/main.js

1 line
2.0 KiB
JavaScript
Raw Normal View History

2021-08-18 19:56:22 +01:00
(()=>{"use strict";var e={995:()=>{const e={body:document.querySelector("body"),wrapper:document.getElementById("wrapper"),header:document.getElementById("header"),nav:document.getElementById("nav"),hero:document.getElementById("hero"),main:document.getElementById("main"),containerCentre:document.getElementById("container-centre"),containerRight:document.getElementById("container-right"),preFooter:document.getElementById("pre-footer"),footer:document.getElementById("footer"),mobileNav:document.getElementById("mobile-nav"),mobileNavToggle:document.getElementById("mobile-nav-toggle")};e.mobileNavToggle.addEventListener("click",(function(){this.classList.toggle("expanded"),e.mobileNav.classList.toggle("menu-visible"),"false"===this.getAttribute("aria-expanded")?this.setAttribute("aria-expanded","true"):this.setAttribute("aria-expanded","false")}));!function(){var t=e.wrapper.querySelectorAll("[data-src]");if(t.length>0){var n=new IntersectionObserver((function(e,t){e.forEach((function(e){var n,r;e.isIntersecting&&(n=e.target,r=n.dataset.src,n.src=r,n.classList.add("loaded"),n.removeAttribute("data-src"),t.unobserve(e.target))}))}),{threshold:.5});t.forEach((function(e){n.observe(e)}))}}()},617:()=>{}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.m=e,n.x=e=>{},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={522:0},t=[[995],[617]],r=e=>{},o=(o,a)=>{for(var l,i,[s,d,c,u]=a,m=0,g=[];m<s.length;m++)i=s[m],n.o(e,i)&&e[i]&&g.push(e[i][0]),e[i]=0;for(l in d)n.o(d,l)&&(n.m[l]=d[l]);for(c&&c(n),o&&o(a);g.length;)g.shift()();return u&&t.push.apply(t,u),r()},a=self.webpackChunkskeleventy=self.webpackChunkskeleventy||[];function l(){for(var r,o=0;o<t.length;o++){for(var a=t[o],l=!0,i=1;i<a.length;i++){var s=a[i];0!==e[s]&&(l=!1)}l&&(t.splice(o--,1),r=n(n.s=a[0]))}return 0===t.length&&(n.x(),n.x=e=>{}),r}a.forEach(o.bind(null,0)),a.push=o.bind(null,a.push.bind(a));var i=n.x;n.x=()=>(n.x=i||(e=>{}),(r=l)())})(),n.x()})();