1let MagnificPopUpConfig = { 2 delegate: 'img', 3 type: 'image', 4 fixedBgPos: true, 5 fixedContentPos:true, 6 closeMarkup: '' + 7 ' <div class = "closeButton forbid-tab" tabindex="0" onClick="closeLightbox()" role="button" aria-label="Popup SchlieÃen">\n' + 8 ' <svg class="eksu" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" >\n' + 9 ' <title>Close</title>\n' + 10 ' <circle class="fill-current" r="20" cy="20" cx="20"></circle>\n' + 11 ' <line x1="15" y1="15" x2="25" y2="25" style="stroke:rgb(255, 255, 255);stroke-width:1"></line>\n' + 12 ' <line x1="15" y1="25" x2="25" y2="15" style="stroke:rgb(255, 255, 255);stroke-width:1"></line>\n' + 13 ' </svg>\n' + 14 ' </div>', 15 gallery: { 16 enabled: false 17 }, 18 callbacks: { 19 //resize,change callbacks also avalible 20 //imageLoadComplete:changeImgSize, 21 elementParse: function (qw) { 22 console.log(qw); 23 if (typeof $(qw.el).parent("[data-mfp-src]").data("mfp-src") !== undefined) { 24 /* Using a non Croped Version in Popup if mfp-src is set example D06 */ 25 qw.src = $(qw.el).parent("[data-mfp-src]").data("mfp-src"); 26 } else { 27 qw.src = qw.el.attr('src'); 28 } 29 }, 30 open: function () { 31 /* Why Overfloww Hidden?, removed because Jumping D06 Image POPups */ 32 // $('body').css('overflow', 'hidden'); 33 }, 34 close: function () { 35 /* Why Overfloww Hidden?, removed because Jumping D06 Image POPups */ 36 // $('body').css('overflow', ''); 37 }, 38 }, 39 image: { 40 markup: '<section class="mfp-figure" role="dialog" aria-modal="true">' + 41 '<div class="mfp-headline"><div role="button" aria-label="Bild Zoomen" aria-hidden="true" class="zoomButton" onclick="zoomLightBox(event)"><svg width="40" height="40" viewBox="-1 -1 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">\n' + 42 '<path d="M0.000488281 24C0.000488281 10.7452 10.7457 0 24.0005 0C37.2553 0 48.0005 10.7452 48.0005 24C48.0005 37.2548 37.2553 48 24.0005 48C10.7457 48 0.000488281 37.2548 0.000488281 24Z" fill="white"/>\n' + 43 '<path fill-rule="evenodd" clip-rule="evenodd" d="M23.1567 17.8125C20.2055 17.8125 17.813 20.205 17.813 23.1562C17.813 26.1075 20.2055 28.5 23.1567 28.5C26.108 28.5 28.5005 26.1075 28.5005 23.1562C28.5005 20.205 26.108 17.8125 23.1567 17.8125ZM16.688 23.1562C16.688 19.5837 19.5841 16.6875 23.1567 16.6875C26.7293 16.6875 29.6255 19.5837 29.6255 23.1562C29.6255 26.7288 26.7293 29.625 23.1567 29.625C19.5841 29.625 16.688 26.7288 16.688 23.1562Z" fill="black"/>\n' + 44 '<path fill-rule="evenodd" clip-rule="evenodd" d="M27.3328 26.5373L31.5456 30.7501L30.7501 31.5456L26.5374 27.3328L27.3328 26.5373Z" fill="black"/>\n' + 45 '<path d="M24.0005 47C11.2979 47 1.00049 36.7025 1.00049 24H-0.999512C-0.999512 37.8071 10.1934 49 24.0005 49V47ZM47.0005 24C47.0005 36.7025 36.703 47 24.0005 47V49C37.8076 49 49.0005 37.8071 49.0005 24H47.0005ZM24.0005 1C36.703 1 47.0005 11.2975 47.0005 24H49.0005C49.0005 10.1929 37.8076 -1 24.0005 -1V1ZM24.0005 -1C10.1934 -1 -0.999512 10.1929 -0.999512 24H1.00049C1.00049 11.2975 11.2979 1 24.0005 1V-1Z" fill="#CACACA"/>\n' + 46 '</svg></div>\n<div class="mfp-close" ></div></div>' + 47 '<div class="mfp-img-wrapper-wrapper"><figure class="mfp-img-wrapper" onmousemove="zoom(event)"><div class="mfp-img"></div></figure></div>' + 48 '</section>' + 49 '</div>' 50 } 51}; 52 53 54$(document).ready(function () { 55 //Used for C01 Card Images 56 $(".card-slider .swiper").each(function (index, value) { 57 if (typeof $(value).data("swiper") !== "undefined") { 58 initCardSlider($(value).data("swiper")); 59 } 60 }); 61 //Used for C03 Card Images 62 $(".card-slider-c03 .swiper").each(function (index, value) { 63 console.log($(value)); 64 if (typeof $(value).data("swiper") !== "undefined") { 65 initCardSlider($(value).data("swiper")); 66 } 67 }); 68 69 $(".card-slider .card-slider-tab").on("click keydown", function (e) { 70 if (e.type === "click" || e.keyCode === 13) { 71 let sliderId = $(this).data("slider"); 72 let sliderOwner = $(this).closest(".card-slider"); 73 sliderOwner.find(".card-slider-teaser").removeClass("active"); 74 sliderOwner.find(".card-slider-slide").removeClass("active"); 75 sliderOwner.find(".card-slider-tab").removeClass("active"); 76 sliderOwner.find(".card-slider-teaser-" + sliderId).addClass("active"); 77 sliderOwner.find(".card-slider-slide-" + sliderId).addClass("active"); 78 sliderOwner.find(".card-slider-tab-" + sliderId).addClass("active"); 79 } 80 }); 81 82 //Used for C02 Gallery Images 83 $(".fullbleed-gallery .swiper").each(function (index, value) { 84 if (typeof $(value).data("swiper") !== "undefined") { 85 initGallerySlider($(value).data("swiper")); 86 } 87 }); 88 89 90 $('.fullbleed-gallery-item, .d06-gallerygrid-image,.use_magnific_popup').magnificPopup(MagnificPopUpConfig); 91 92}); 93 94 95function closeLightbox() { 96 $.magnificPopup.close(); 97} 98 99function zoomLightBox(event) { 100 if (event) { 101 event.stopPropagation();// dont close the lightbox on click 102 } 103 $(".mfp-img-wrapper").toggleClass("mfp-hover-wrapper"); 104 $(".mfp-img-wrapper").css("background-image", "url(" + $('.mfp-img').attr('src') + ")"); 105} 106 107function zoom(e) { 108 var zoomer = e.currentTarget; 109 var offsetX, offsetY; 110 if (e.offsetX) { 111 offsetX = e.offsetX; 112 } else if (e.touches) { 113 offsetX = e.touches[0].pageX; 114 } 115 if (e.offsetY) { 116 offsetY = e.offsetY; 117 } else if (e.touches) { 118 offsetY = e.touches[0].pageY; 119 } 120 var x = offsetX / zoomer.offsetWidth * 100; 121 var y = offsetY / zoomer.offsetHeight * 100; 122 zoomer.style.setProperty('--bg-x', x + '%'); 123 zoomer.style.setProperty('--bg-y', y + '%'); 124} 125 126//Used for C01 Card Images 127function initCardSlider(uid) { 128 var swiper = new Swiper('.swiper-' + uid, { 129 slidesPerView: 'auto', 130 spaceBetween: 30, 131 keyboard: !0, 132 grabCursor: !0, 133 watchSlidesVisibility: !0, 134 navigation: { 135 nextEl: '.msswiper-button-next' + uid, 136 prevEl: '.msswiper-button-prev' + uid, 137 }, 138 }); 139} 140 141//Used for C02 142function initGallerySlider(uid) { 143 var swiper = new Swiper('.gallerySwiper-' + uid, { 144 pagination: { 145 el: ".msswiper-pagination-" + uid, 146 type: "custom", 147 renderCustom: function (swiper, current, total) { 148 return ('0' + current).slice(-2) + ' / ' + ('0' + total).slice(-2); 149 } 150 }, 151 navigation: { 152 nextEl: '.msswiper-gallerybutton-next-' + uid, 153 prevEl: '.msswiper-gallerybutton-prev-' + uid, 154 }, 155 }); 156 swiper.on('slideChange', function (e) { 157 let dataItem = $(e.slides[e.activeIndex]).find(".fullbleed-gallery-item"); 158 $(".fullbleed-gallery-navigation-credits-" + uid).find("p").attr("onclick", "imageCreditOverlay(" + dataItem.data("imageuid") + ")"); 159 $(".fullbleed-gallery-navigation-title-" + uid).html(dataItem.data("title")); 160 }); 161} 162 163
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.