1import PhotoSwipeLightbox from"../Libraries/photoSwipe-5.4.3-dist/photoswipe-lightbox.esm.min.js";let gallery;var pathArray=window.location.pathname.split("/");var accessibilityAddWordPage="";var accessibilityAddWordPrevious="";var accessibilityAddWordNext="";var accessibilityAddWordImageZoom="";if(pathArray.indexOf("de")===1){accessibilityAddWordPage="Seite";accessibilityAddWordPrevious="zum vorherigen Bild";accessibilityAddWordNext="zum nächsten Bild";accessibilityAddWordImageZoom="Bild vergrössern"}else{accessibilityAddWordPage="Page";accessibilityAddWordPrevious="previous picture";accessibilityAddWordNext="next picture";accessibilityAddWordImageZoom="Image zoom"}const SWIPE_THRESHOLD=50;$('div.ce-gallery[data-ce-images!="1"] .img-responsive-slides-list').each((function(){var thisResponsiveSlides=$(this);var currentSlider=$(this).responsiveSlides({auto:false,speed:1e3,pager:true,nav:true,namespace:"zhaw-responsive-slides",prevText:accessibilityAddWordPrevious,nextText:accessibilityAddWordNext,before:function(){},after:function(){$(thisResponsiveSlides).siblings(".zhaw-responsive-slides_tabs").find("a[tabindex]").removeAttr("tabindex");$(thisResponsiveSlides).siblings(".zhaw-responsive-slides_tabs").find(".zhaw-responsive-slides_here a").attr("tabindex","-1")}});if(window.matchMedia("(min-width: 992px)").matches){if(thisResponsiveSlides.find(".photo-swipe-gallery-item").length>0){var contentSliderId=thisResponsiveSlides.parents(".frame")[0].id;thisResponsiveSlides.parent().append('<a class="photo-swipe-popup-wrap">'+'<span class="visually-hidden">'+accessibilityAddWordImageZoom+"</span>"+'<div class="icon-background-circle icon-background-circle-lightgrey icon-background-circle-40 ">'+'<svg aria-hidden="true" viewBox="0 0 256 256" class="iconpack phosphor phosphor-arrow-up-right-bold" fill="currentColor" role="img" xmlns="http://www.w3.org/2000/svg"><rect width="256" height="256" fill="none"></rect><line x1="64" y1="192" x2="192" y2="64" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"></line><polyline points="88 64 192 64 192 168" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"></polyline></svg>'+"</div>"+"</a>")}thisResponsiveSlides.find(".photo-swipe-gallery-item").each((function(){let imageAnchor=$(this);let imageSrc=imageAnchor.attr("href");let img=new Image;img.src=imageSrc;img.onload=function(){let width=img.naturalWidth;let height=img.naturalHeight;imageAnchor.attr("data-pswp-width",width);imageAnchor.attr("data-pswp-height",height)}}))}$(".img-responsive-slides-list").parent().find(".photo-swipe-popup-wrap").on("click",(function(e){e.preventDefault();let dataSource=$(this).closest(".img-responsive-slides");let galleryIndex=$(".img-responsive-slides").index(dataSource);$(this).parent().find(".ce-row").each((function(index,element){if($(this).attr("class")!=="ce-row"){gallery.loadAndOpen(index,{gallery:$(".img-responsive-slides")[galleryIndex]})}}))}));let touchStartX=0;let touchEndX=0;$(".img-responsive-slides .next").on("touchstart",(function(e){touchStartX=e.originalEvent.touches[0].clientX})).on("touchend",(function(e){touchEndX=e.originalEvent.changedTouches[0].clientX;const delta=touchEndX-touchStartX;if(Math.abs(delta)<SWIPE_THRESHOLD)return;if(delta<0){$(this).trigger("click")}else{$(this).siblings(".prev").trigger("click")}}));createPhotoSwipeGallery(null,true);$(this).siblings("ul.zhaw-responsive-slides_tabs").find("li a").each((function(){var pageNumber=$(this).text();$(this).text(accessibilityAddWordPage+" "+pageNumber).wrapInner('<span class="visually-hidden"></span>')}));$(this).siblings(".zhaw-responsive-slides_tabs").find(".zhaw-responsive-slides_here a").attr("tabindex","-1");$(this).siblings("a.zhaw-responsive-slides_nav").attr("tabindex","-1")}));function createPhotoSwipeGallery(options,hideArrows){var photoSwipePathArray=window.location.pathname.split("/");var photoSwipeGalleryCloseButtonSrOnly="";var photoSwipeGalleryNextButtonSrOnly="";var photoSwipeGalleryPrevButtonSrOnly="";var photoSwipeModuleCloseButtonSrOnly;if(photoSwipePathArray.indexOf("de")===1){photoSwipeGalleryCloseButtonSrOnly="Gallerie schliessen";photoSwipeGalleryNextButtonSrOnly="Zum nächsten Bild wechseln";photoSwipeGalleryPrevButtonSrOnly="Zum vorherigen Bild wechseln";photoSwipeModuleCloseButtonSrOnly="Modul schliessen"}else{photoSwipeGalleryCloseButtonSrOnly="Close Gallery";photoSwipeGalleryNextButtonSrOnly="Go to next image";photoSwipeGalleryPrevButtonSrOnly="Go to previous image";photoSwipeModuleCloseButtonSrOnly="Close module"}const leftArrowSVGString='<div class="icon-background-circle icon-background-circle-white icon-background-circle-40 "><svg viewBox="0 0 256 256" class="iconpack phosphor phosphor-caret-left-bold" fill="currentColor" role="img" xmlns="http://www.w3.org/2000/svg"><rect width="256" height="256" fill="none"></rect><polyline points="160 208 80 128 160 48" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"></polyline></svg></div>';const rightArrowSVGString='<div class="icon-background-circle icon-background-circle-white icon-background-circle-40 "><svg viewBox="0 0 256 256" class="iconpack phosphor phosphor-caret-right-bold" fill="currentColor" role="img" xmlns="http://www.w3.org/2000/svg"><rect width="256" height="256" fill="none"></rect><polyline points="96 48 176 128 96 208" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"></polyline></svg></div>';const closeSVGString='<div class="icon-background-circle icon-background-circle-white icon-background-circle-40 "><svg viewBox="0 0 256 256" class="iconpack phosphor phosphor-x-bold" fill="currentColor" role="img" xmlns="http://www.w3.org/2000/svg"><rect width="256" height="256" fill="none"></rect><line x1="200" y1="56" x2="56" y2="200" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"></line><line x1="200" y1="200" x2="56" y2="56" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"></line></svg></div>';gallery=new PhotoSwipeLightbox({gallery:".img-responsive-slides",children:".photo-swipe-gallery-item",arrowPrevSVG:leftArrowSVGString,arrowNextSVG:rightArrowSVGString,closeSVG:closeSVGString,closeTitle:photoSwipeGalleryCloseButtonSrOnly,arrowNextTitle:photoSwipeGalleryNextButtonSrOnly,arrowPrevTitle:photoSwipeGalleryPrevButtonSrOnly,zoom:false,pswpModule:()=>import("../Libraries/photoSwipe-5.4.3-dist/photoswipe.esm.min.js")});gallery.init()}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.