1"use strict"; 2 3/** 4 * Responsive Popup Tabs 5 * à¸à¹à¸à¸à¸à¸±à¸à¸à¸µà¹à¸à¹à¸²à¸à¹à¸à¸¡à¸µà¸à¸à¸à¹à¸à¸à¸à¹à¸à¸µà¹à¹à¸à¹à¸à¹à¸à¸·à¹à¸à¸«à¸²à¸à¹à¸§à¸¢à¹à¸à¹à¸ 6 * @since 2019-04 7 * 8 */ 9(function ($) { 10 var servicePopupInit = function servicePopupInit(selector) { 11 var $content = $(selector); 12 var thumbImages = $content.find('.js-thumb-carousel'); 13 var thumbGallery = new Swiper(thumbImages, { 14 loop: false, 15 spaceBetween: 8, 16 slidesPerView: 8, 17 watchSlidesVisibility: true 18 }); 19 var mainImages = $content.find('.js-room-carousel').get(0); 20 var mainGallery = new Swiper(mainImages, { 21 loop: true, 22 spaceBetween: 10, 23 thumbs: { 24 swiper: thumbGallery 25 }, 26 navigation: { 27 prevEl: '.component-slider__button--prev', 28 nextEl: '.component-slider__button--next' 29 }, 30 pagination: { 31 el: '.component-slider__pagination', 32 type: 'fraction' 33 } 34 }); 35 }; 36 37 var popupTabsTypeInit = function popupTabsTypeInit() { 38 function popupTabsType(el) { 39 if (window.innerWidth >= 768) { 40 $(el).removeClass('component-popup-tabs--accordion'); 41 $(el).addClass('component-popup-tabs--tabs'); 42 } else { 43 $(el).removeClass('component-popup-tabs--tabs'); 44 $(el).addClass('component-popup-tabs--accordion'); 45 } 46 } 47 48 $(document).on('click', '.js-inline-popup-tabs', function (event) { 49 event.preventDefault(); 50 var source = event.currentTarget.hash || event.currentTarget.dataset.target; 51 52 if (!source || !$(source).length) { 53 console.error('Target not found or the link has not set target'); 54 return; 55 } 56 57 $.magnificPopup.open({ 58 type: 'inline', 59 items: { 60 src: source 61 }, 62 alignTop: true, 63 mainClass: 'component-popup mfp-slide-up', 64 removalDelay: 200, 65 callbacks: { 66 open: function open() { 67 servicePopupInit(this.content); 68 } 69 } 70 }); 71 }); 72 }; 73 74 console.log('PopupTabsTypeInit'); 75 76 if (window.PopupTabsTypeInit === undefined) { 77 window.PopupTabsTypeInit = popupTabsTypeInit; 78 } 79 80 window.PopupTabsTypeInit(); 81})(jQuery); 82//# sourceMappingURL=popup-tabs.js.map
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.