Elementor popup carousel script run - smart post show
Thu Jun 01 2023 11:52:45 GMT+0000 (Coordinated Universal Time)
Saved by
@Pulak
(function ($) {
'use strict';
$(document).ready(function(){
function wpcf_load_script(){
var script_path="https://thewaywedream.com/wp-content/plugins/smart-post-show-pro/public/assets/js/";
var wpcfAjaxInterval = setInterval(function(){
// Check if the WP Carousel is not initialized or preloader is not removed.
if( $(document).find('.sp-pcp-carousel .sp-smart-pro-item:not(.swiper-active)').length > 0 ) {
$.getScript(script_path + 'scripts.min.js');
setTimeout(function(){
$('.sp-pcp-section').css("opacity", "1");
}, 800);
clearInterval(wpcfAjaxInterval);
}
}, 200);
// Clear interval after 10s.
setTimeout(function(){
clearInterval(wpcfAjaxInterval);
}, 5000);
}
$(document).on('click','.folders',function(){
$('.sp-pcp-section').css("opacity", "0").parents('.elementor-popup-modal .dialog-message').css("overflow","hidden");
wpcf_load_script();
});
});
})(jQuery);
content_copyCOPY
https://thewaywedream.com/wp-admin/admin.php?page
Comments