(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);
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter