PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.4
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.4
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
post-carousel / public / assets / js / scripts.min.js

scripts.min.js in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.4, at public/assets/js/scripts.min.js

1 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 !function($){function SpPostShowCarouselInit(){if($(".pcp-carousel-wrapper").length>0){function swiperSlide(selector,options){return 1===parseInt(pcp_vars.swiperEnqueue)?new PCPSwiper(selector,options):new Swiper(selector,options)}$(".pcp-carousel-wrapper").each((function(){var pcp_container,pcp_container_id=$(this).attr("id"),pcpCarousel=$("#"+pcp_container_id+" .sp-pcp-carousel:not(.swiper-initialized)"),pcpCarouselData=pcpCarousel.data("carousel");if(pcpCarousel.length>0){var pcpSwiper=swiperSlide("#"+pcp_container_id+" .sp-pcp-carousel",{speed:pcpCarouselData.speed,slidesPerView:pcpCarouselData.slidesPerView.mobile,spaceBetween:pcpCarouselData.spaceBetween,loop:pcpCarouselData.loop,loopFillGroupWithBlank:!0,autoHeight:pcpCarouselData.autoHeight,simulateTouch:pcpCarouselData.simulateTouch,freeMode:pcpCarouselData.freeMode,allowTouchMove:pcpCarouselData.allowTouchMove,centeredSlides:pcpCarouselData.center_mode,mousewheel:pcpCarouselData.slider_mouse_wheel,lazy:pcpCarouselData.lazy,pagination:1==pcpCarouselData.pagination&&{el:".swiper-pagination",clickable:!0,dynamicBullets:pcpCarouselData.dynamicBullets,renderBullet:function(index,className){return"number"==pcpCarouselData.bullet_types?'<span class="'+className+'">'+(index+1)+"</span>":'<span class="'+className+'"></span>'}},autoplay:{delay:pcpCarouselData.autoplay_speed},navigation:1==pcpCarouselData.navigation&&{nextEl:".pcp-button-next",prevEl:".pcp-button-prev"},breakpoints:{576:{slidesPerView:pcpCarouselData.slidesPerView.mobile_landscape,navigation:1==pcpCarouselData.navigation_mobile&&{nextEl:".pcp-button-next",prevEl:".pcp-button-prev"},pagination:1==pcpCarouselData.pagination_mobile&&{el:".swiper-pagination",clickable:!0,dynamicBullets:pcpCarouselData.dynamicBullets,renderBullet:function(index,className){return"number"==pcpCarouselData.bullet_types?'<span class="'+className+'">'+(index+1)+"</span>":'<span class="'+className+'"></span>'}}},768:{slidesPerView:pcpCarouselData.slidesPerView.tablet},992:{slidesPerView:pcpCarouselData.slidesPerView.desktop},1200:{slidesPerView:pcpCarouselData.slidesPerView.lg_desktop}},fadeEffect:{crossFade:!0},ally:{enabled:pcpCarouselData.enabled,prevSlideMessage:pcpCarouselData.prevSlideMessage,nextSlideMessage:pcpCarouselData.nextSlideMessage,firstSlideMessage:pcpCarouselData.firstSlideMessage,lastSlideMessage:pcpCarouselData.lastSlideMessage,paginationBulletMessage:pcpCarouselData.paginationBulletMessage},keyboard:{enabled:"true"===pcpCarouselData.keyboard}});!1===pcpCarouselData.autoplay&&pcpSwiper.autoplay.stop(),pcpCarouselData.stop_onHover&&pcpCarouselData.autoplay&&$(pcpCarousel).on({mouseenter:function(){pcpSwiper.autoplay.stop()},mouseleave:function(){pcpSwiper.autoplay.start()}}),$(window).on("resize",(function(){pcpSwiper.update()})),$(window).trigger("resize")}}))}$(".sp-pcp-section").each((function(){var pcp_container=$(this).attr("id"),PCP_Wrapper_ID;$(".pcp-preloader","#"+pcp_container).css({backgroundImage:"none",visibility:"hidden"})})),$(".sp-pcp-section").addClass("sp-pcp-section-loaded")}$(document).ready((function(){SpPostShowCarouselInit()})),$(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/smart_post_show_pro_shortcode.default",SpPostShowCarouselInit),elementorFrontend.hooks.addAction("frontend/element_ready/sp_smart_post_show_free_shortcode.default",SpPostShowCarouselInit)}))}(jQuery);