jahresbericht2018/assets/js/views/pages/report.js

1 line
943 B
JavaScript
Raw Permalink Normal View History

2024-01-12 13:54:37 +00:00
"use strict";require(["compat/modernizr","waypoints","require/domReady!"],function(e,t){document.querySelector.bind(document);let n=document.querySelectorAll.bind(document),o=n(".jb-hsplit");o.length&&(e.touchevents?o.forEach(e=>e.classList.add("come-in")):o.forEach(e=>{new t({element:e,handler:()=>{e.classList.add("come-in")},offset:"90%"})}));let r=n(".slider");r.length&&require(["swiper"],function(e){r.forEach(t=>{t.querySelectorAll(".swiper-slide").length<=1?t.classList.remove("loading"):new e(t,{nextButton:".swiper-button-next",prevButton:".swiper-button-prev",centeredSlides:!0,loop:!0,slidesPerView:1,onImagesReady:function(){t.classList.remove("loading")}})})}),document.querySelector(".report-detail__panorama")&&require(["pannellum"],function(){pannellum.viewer("panorama",{type:"equirectangular",autoLoad:!0,panorama:"https://upload.wikimedia.org/wikipedia/commons/c/c6/2018-09-22-Jagdschloss_Grunewald_360-0010765.jpg"})})});