jahresbericht2017/assets/js/views/pages/report.js

1 line
651 B
JavaScript
Raw Permalink Normal View History

2024-01-12 13:52:51 +00:00
require(["modernizr","waypoint","domready!"],function(e,n){let t=(document.querySelector.bind(document),document.querySelectorAll.bind(document)),o=t(".jb-hsplit");o.length&&(e.touchevents?o.forEach(e=>e.classList.add("come-in")):o.forEach(e=>{new n({element:e,handler:()=>{e.classList.add("come-in")},offset:"90%"})}));let i=t(".slider");i.length&&require(["swiper"],function(e){i.forEach(n=>{n.querySelectorAll(".swiper-slide").length<=1?n.classList.remove("loading"):new e(n,{nextButton:".swiper-button-next",prevButton:".swiper-button-prev",centeredSlides:!0,loop:!0,slidesPerView:1,onImagesReady:function(){n.classList.remove("loading")}})})})});