1(function( $ ) { 2 'use strict'; 3 4 /** 5 * All of the code for your public-facing JavaScript source 6 * should reside in this file. 7 * 8 * Note: It has been assumed you will write jQuery code here, so the 9 * $ function reference has been prepared for usage within the scope 10 * of this function. 11 * 12 * This enables you to define handlers, for when the DOM is ready: 13 * 14 * $(function() { 15 * 16 * }); 17 * 18 * When the window is loaded: 19 * 20 * $( window ).load(function() { 21 * 22 * }); 23 * 24 * ...and/or other possibilities. 25 * 26 * Ideally, it is not considered best practise to attach more than a 27 * single DOM-ready or window-load handler for a particular page. 28 * Although scripts in the WordPress core, Plugins and Themes may be 29 * practising this, we should strive to set a better example in our own work. 30 */ 31 32 /* 33 try { 34 $('.lgx_app_item_link').tooltipster(); 35 } catch(e) { 36 //console.log('not start'); 37 } 38 */ 39 40 jQuery(document).ready(function ($) { 41 42 if ( $('.lgx_logo_carousel').length ) { 43 $('.lgx_logo_carousel').each(function (index) { 44 var lgx_logo_carousel_item = $(this); 45 var lgxLogoCarouselDataAttr = lgx_logo_carousel_item.data(); 46 var lgx_logo_carousel_id = lgx_logo_carousel_item.attr('id'); 47 var lgxLogoCarousel = $('#' + lgx_logo_carousel_id + '.lgx_logo_carousel'); 48 // console.log(lgxCarouselDataAttr); 49 var lgxLogoPagination =lgxLogoCarouselDataAttr.pagination; 50 var lgxLogoNavigation = lgxLogoCarouselDataAttr.nav; 51 var lgxLogoAutoplay = lgxLogoCarouselDataAttr.infinite; 52 53 if (lgxLogoCarousel.length > 0) { 54 var lgxLogoSwiper = new Swiper('#' + lgx_logo_carousel_id, { 55 lazy:lgxLogoCarouselDataAttr.lazy, 56 loop: lgxLogoCarouselDataAttr.infinite, 57 speed: parseInt(lgxLogoCarouselDataAttr.speed), 58 autoplay: 59 lgxLogoAutoplay == true 60 ?{ 61 delay: parseInt(lgxLogoCarouselDataAttr.delay), 62 disableOnInteraction:false, 63 pauseOnMouseEnter:lgxLogoCarouselDataAttr.pause, 64 } 65 : false, 66 spaceBetween: parseInt(lgxLogoCarouselDataAttr.space), 67 slidesPerView: parseInt(lgxLogoCarouselDataAttr.item_mobile), 68 allowTouchMove: lgxLogoCarouselDataAttr.move, 69 simulateTouch: lgxLogoCarouselDataAttr.simulate, 70 grabCursor: lgxLogoCarouselDataAttr.grab, 71 mousewheel: lgxLogoCarouselDataAttr.wheel, 72 autoHeight:lgxLogoCarouselDataAttr.height, 73 //freeMode: true, 74 effect: lgxLogoCarouselDataAttr.effect, 75 coverflowEffect: { 76 rotate: 30, 77 slideShadows: false, 78 }, 79 pagination: 80 lgxLogoPagination == true 81 ? { 82 el: '.swiper-pagination', 83 type:'bullets', 84 clickable: true, 85 dynamicBullets: lgxLogoCarouselDataAttr.dynamic, 86 dynamicMainBullets: parseInt(lgxLogoCarouselDataAttr.bullets_no), 87 } 88 : false, 89 navigation: 90 lgxLogoNavigation == true 91 ? { 92 nextEl: '.lgx_lsw_nav_button_next', 93 prevEl: '.lgx_lsw_nav_button_prev' 94 } 95 : false, 96 97 breakpoints: { 98 320: { 99 slidesPerView:parseInt(lgxLogoCarouselDataAttr.item_mobile), 100 }, 101 768: { 102 slidesPerView: parseInt(lgxLogoCarouselDataAttr.item_tablet), 103 }, 104 992: { 105 slidesPerView: parseInt(lgxLogoCarouselDataAttr.item_desk), 106 }, 107 1200: { 108 slidesPerView: parseInt(lgxLogoCarouselDataAttr.item_large), 109 }, 110 }, 111 loopFillGroupWithBlank: true, 112 fadeEffect: { 113 crossFade: true 114 }, 115 keyboard: { 116 enabled: true 117 }, 118 }) 119 if (lgxLogoCarouselDataAttr.autoplay === false) { 120 lgxLogoSwiper.autoplay.stop() 121 } 122 if (lgxLogoCarouselDataAttr.pause && lgxLogoCarouselDataAttr.autoplay) { 123 $(lgxLogoCarousel).hover( 124 function () { 125 lgxLogoSwiper.autoplay.stop() 126 }, 127 function () { 128 lgxLogoSwiper.autoplay.start() 129 } 130 ) 131 $(lgxLogoCarousel).mouseenter(function () { 132 lgxLogoSwiper.autoplay.stop(); 133 });
134 $(lgxLogoCarousel).mouseleave(function () { 135 lgxLogoSwiper.autoplay.start(); 136 }); 137 } 138 /*Final End*/ 139 140 $(window).resize(function () { 141 lgxLogoSwiper.update() 142 }) 143 $(window).trigger("resize") 144 } 145 146 }); //Swiper Each 147 } 148 149 150 if ( $('.lgx_app_item_tooltip').length ) { 151 $('.lgx_app_content_wrapper').each(function (index) { 152 var lgx_ls_tt_item = $(this); 153 var lgx_showcase_id = lgx_ls_tt_item.attr('id'); 154 var lgx_tooltip_data_row = $('#' + lgx_showcase_id + ' .lgx_app_item_row'); 155 var lgxTtDataAttr = lgx_tooltip_data_row.data(); 156 //console.log(lgxTtDataAttr); 157 $('#' + lgx_showcase_id + ' .lgx_app_item_tooltip').tooltipster({ 158 //position:'top', 159 side:lgxTtDataAttr.tt_position, 160 animation: lgxTtDataAttr.tt_anim, 161 animationDuration: lgxTtDataAttr.tt_duration, 162 arrow: lgxTtDataAttr.tt_arrow, 163 delay: lgxTtDataAttr.tt_delay, 164 distance: lgxTtDataAttr.tt_distance, 165 trigger: lgxTtDataAttr.tt_trigger, 166 minIntersection: lgxTtDataAttr.tt_intersection, 167 timer:lgxTtDataAttr.tt_timer, 168 theme: 'lgx_lsw_tooltipster_'+ lgxTtDataAttr.tt_id, 169 }); 170 }); //each 171 } 172 173 /* $('.lgx_app_item_row').masonry({ 174 // options 175 itemSelector: '.lgx_app_item', 176 columnWidth: 200, 177 gutter: 10, 178 //fitWidth: true 179 }); 180*/ 181 182 183 if ( $('.lgx_lsw_preloader').length ) { 184 $('body').find('.lgx_logo_slider_app').each(function () { 185 var lgx_lsw_preloader_item = $(this).children('.lgx_lsw_preloader'); 186 $(document).ready(function() { 187 //alert('yes'); 188 $(lgx_lsw_preloader_item).animate({ opacity: 0 }, 600).remove(); 189 }) 190 }) 191 } 192 })//DOM 193 194})( jQuery );
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.