1jQuery(document).ready(function($) { 2 "use strict"; 3 4 //Naeep Hover Script 5 $('.naeep-upcoming-day, .event-info-item, .naeep-price-item, .naeep-service-item, .naeep-news-item, .naeep-gallery-item, .naeep-contact-item, .naeep-team-item, .naeep-testimonial-item, .naeep-video-wrap, .naeep-history-item, .naeep-event-item, .naeep-ticket-item').hover ( 6 function() { 7 $(this).addClass('naeep-hover'); 8 }, 9 function() { 10 $(this).removeClass('naeep-hover'); 11 } 12 ); 13 14 //Naeep Team Hover Script 15 $('.trigger-icon').on ({ 16 mouseenter : function() { 17 $(this).parents(".naeep-team-item").addClass('icon-trigger'); 18 }, 19 mouseleave : function() { 20 $(this).parents(".naeep-team-item").removeClass('icon-trigger'); 21 } 22 }); 23 24 //Owl Carousel Slider Script 25 $('.owl-carousel').each( function() { 26 var $carousel = $(this); 27 var $items = ($carousel.data('items') !== undefined) ? $carousel.data('items') : 1; 28 var $items_tablet = ($carousel.data('items-tablet') !== undefined) ? $carousel.data('items-tablet') : 1; 29 var $items_mobile_landscape = ($carousel.data('items-mobile-landscape') !== undefined) ? $carousel.data('items-mobile-landscape') : 1; 30 var $items_mobile_portrait = ($carousel.data('items-mobile-portrait') !== undefined) ? $carousel.data('items-mobile-portrait') : 1; 31 $carousel.owlCarousel ({ 32 loop : ($carousel.data('loop') !== undefined) ? $carousel.data('loop') : true, 33 items : $carousel.data('items'), 34 margin : ($carousel.data('margin') !== undefined) ? $carousel.data('margin') : 0, 35 dots : ($carousel.data('dots') !== undefined) ? $carousel.data('dots') : true, 36 nav : ($carousel.data('nav') !== undefined) ? $carousel.data('nav') : false, 37 navText : ["<div class='slider-no-current'><span class='current-no'></span><span class='total-no'></span></div><span class='current-monials'></span>", "<div class='slider-no-next'></div><span class='next-monials'></span>"], 38 autoplay : ($carousel.data('autoplay') !== undefined) ? $carousel.data('autoplay') : false, 39 autoplayTimeout : ($carousel.data('autoplay-timeout') !== undefined) ? $carousel.data('autoplay-timeout') : 5000, 40 autoplaySpeed : ($carousel.data('autoplay-speed') !== undefined) ? $carousel.data('autoplay-speed') : false, 41 animateIn : ($carousel.data('animatein') !== undefined) ? $carousel.data('animatein') : false, 42 animateOut : ($carousel.data('animateout') !== undefined) ? $carousel.data('animateout') : false, 43 mouseDrag : ($carousel.data('mouse-drag') !== undefined) ? $carousel.data('mouse-drag') : true, 44 autoWidth : ($carousel.data('auto-width') !== undefined) ? $carousel.data('auto-width') : false, 45 autoHeight : ($carousel.data('auto-height') !== undefined) ? $carousel.data('auto-height') : false, 46 center : ($carousel.data('center') !== undefined) ? $carousel.data('center') : false, 47 responsiveClass: true, 48 dotsEachNumber: true, 49 smartSpeed: 600, 50 autoplayHoverPause: true, 51 slideTransition: 'linear', 52 responsive : { 53 0 : { 54 items : $items_mobile_portrait, 55 }, 56 480 : { 57 items : $items_mobile_landscape, 58 }, 59 768 : { 60 items : $items_tablet, 61 }, 62 992 : { 63 items : $items, 64 } 65 } 66 }); 67 var totLength = $('.owl-dot', $carousel).length; 68 $('.total-no', $carousel).html(totLength); 69 $('.current-no', $carousel).html(totLength); 70 $carousel.owlCarousel(); 71 $('.current-no', $carousel).html(1); 72 $carousel.on('changed.owl.carousel', function(event) { 73 var total_items = event.page.count; 74 var currentNum = event.page.index + 1; 75 $('.total-no', $carousel ).html(total_items); 76 $('.current-no', $carousel).html(currentNum); 77 }); 78 }); 79 80 // Match Height Script 81 $('.naeep-item').matchHeight(); 82 83 //Naeep Masonry Script 84 $('.masonry-wrap').each(function(i, gridContainer) { 85 var $gridContainer = $(gridContainer); 86 var $grid = $gridContainer.find('.naeep-masonry').imagesLoaded(function() { 87 $grid.isotope ({ 88 itemSelector: '.masonry-item', 89 layoutMode: 'packery', 90 percentPosition: true, 91 isFitWidth: true, 92 }) 93 }); 94 $gridContainer.find('.masonry-filters').on('click', 'li a', function() { 95 var filterValue = $(this).attr('data-filter'); 96 $grid.isotope ({ 97 filter: filterValue, 98 }); 99 }); 100 }); 101 $('.masonry-filters').each( function( i, buttonGroup ) { 102 var $buttonGroup = $(buttonGroup); 103 $buttonGroup.on( 'click', 'li a', function() { 104 $buttonGroup.find('.active').removeClass('active'); 105 $(this).addClass('active'); 106 }); 107 }); 108 109 //Naeep Popup Picture Script 110 $('.naeep-popup').magnificPopup ({ 111 delegate: 'a', 112 type: 'image', 113 closeOnContentClick: false, 114 closeBtnInside: false, 115 mainClass: 'mfp-with-zoom mfp-img-mobile', 116 closeMarkup:'<div class="mfp-close" title="%title%"></div>', 117 image: { 118 verticalFit: true, 119 titleSrc: function(item) { 120 return item.el.attr('title') + ' · <a class="image-source-link" href="'+item.el.attr('data-source')+'" target="_blank">image source</a>'; 121 } 122 }, 123 gallery: { 124 enabled: true, 125 arrowMarkup:'<div title="%title%" class="mfp-arrow mfp-arrow-%dir%"></div>', 126 }, 127 zoom: { 128 enabled: true, 129 duration: 300, 130 opener: function(element) { 131 return element.find('*'); 132 } 133 } 134 }); 135 136 //Naeep Magnific Popup Video Script 137 $('.naeep-popup-video').magnificPopup ({ 138 mainClass: 'mfp-fade', 139 type: 'iframe', 140 closeMarkup:'<div class="mfp-close" title="%title%"></div>', 141 iframe: { 142 patterns: { 143 youtube: { 144 index: 'youtube.com/', 145 id: function(url) { 146 var m = url.match(/[\\?\\&]v=([^\\?\\&]+)/); 147 if ( !m || !m[1] ) return null; 148 return m[1]; 149 }, 150 src: 'https://www.youtube.com/embed/%id%?autoplay=1' 151 }, 152 vimeo: { 153 index: 'vimeo.com/', 154 id: function(url) { 155 var m = url.match(/(https?:\/\/)?(www.)?(player.)?vimeo.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/); 156 if ( !m || !m[5] ) return null; 157 return m[5]; 158 }, 159 src: 'https://player.vimeo.com/video/%id%?autoplay=1' 160 }, 161 dailymotion: { 162 index: 'dailymotion.com/', 163 id: function(url) { 164 var m = url.match(/^.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/); 165 if ( !m || !m[2] ) return null; 166 return m[2]; 167 }, 168 src: 'https://iframespot.blogspot.com/ncr/?m=0&type=dv&url=https%3A%2F%2Fwww.dailymotion.com%2Fembed%2Fvideo%2F%id%%3Fapi%3D0%26autoplay%3D1%26info%3D0%26logo%3D0%26social%3D0%26related%3D0' 169 } 170 } 171 } 172 }); 173 if ($('div').hasClass('naeep-popup')) { 174 $('.naeep-popup').find('a').attr("data-elementor-open-lightbox","no"); 175 } 176 //Naeep Add Class In Previous Items 177 $('.naeep-process-item').hover(function() { 178 $(this).prevAll('.naeep-process-item').toggleClass('process-done'); 179 $(this).toggleClass('process-done'); 180 }); 181 182 $('.naeep-tab-links a').on('click', function(e) { 183 var currentAttrValue = $(this).attr('href'); 184 185 // Show/Hide Tabs 186 $('.naeep-tab-content ' + currentAttrValue).fadeIn(400).siblings().hide().stop(true, true); 187 188 // Change/remove current tab to active 189 $(this).parent('li').addClass('active').siblings().removeClass('active'); 190 191 // Match Height Script 192 $('.naeep-item').matchHeight(); 193 194 e.preventDefault(); 195 }); 196 197 setTimeout(function() { 198 $('.naeep-cta').addClass('active'); 199 }, 6000); 200 $('.cta-close').click(function() { 201 $('.naeep-cta').fadeOut('normal', function() { 202 $(this).remove(); 203 $('.naeep-cta').removeClass('active'); 204 }); 205 }); 206 207 $(window).load(function() { 208 if($('div').hasClass('swiper-slides')) { 209 $('.swiper-slides').each(function (index) { 210 //Fame Swiper Slider Script 211 var animEndEv = 'webkitAnimationEnd animationend'; 212 var swipermw = $('.swiper.swiper-mousewheel').length ? true : false;
213 var swiperkb = $('.swiper.swiper-keyboard').length ? true : false; 214 var swipercentered = $('.swiper.swiper-center').length ? true : false; 215 var swiperautoplay = $('.swiper').data('autoplay'); 216 var swiperloop = $('.swiper').data('loop'); 217 var swipermousedrag = $('.swiper').data('mousedrag'); 218 var swipereffect = $('.swiper').data('effect'); 219 var swiperclikable = $('.swiper').data('clickpage'); 220 var swiperspeed = $('.swiper').data('speed'); 221 222 //Fame Swiper Slides Script 223 var swiper = new Swiper($(this), { 224 autoplay: swiperautoplay, 225 effect: swipereffect, 226 speed: swiperspeed, 227 loop: swiperloop, 228 paginationClickable: swiperclikable, 229 watchSlidesProgress: true, 230 simulateTouch: swipermousedrag, 231 pagination: { 232 el: '.swiper-pagination', 233 clickable: true, 234 }, 235 navigation: { 236 nextEl: '.swiper-button-next', 237 prevEl: '.swiper-button-prev', 238 }, 239 mousewheelControl: swipermw, 240 keyboardControl: swiperkb, 241 }); 242 swiper.on('slideChange', function (s) { 243 var currentSlide = $(swiper.slides[swiper.activeIndex]); 244 var elems = currentSlide.find('.animated') 245 elems.each(function() { 246 var $this = $(this); 247 var animationType = $this.data('animation'); 248 $this.addClass(animationType, 100).on(animEndEv, function() { 249 $this.removeClass(animationType); 250 }); 251 }); 252 }); 253 }); 254 } 255 }); 256 257 //Sticky Sidebar Script 258 $('.proeep-sticky-sidebar').theiaStickySidebar ({ 259 additionalMarginTop: 150, 260 }); 261 262});
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.