This listing has been expired.
jQuery(document).ready(function() { jQuery('.wpem-single-event-slider').slick({ dots: true, infinite: true, speed: 500, fade: true, cssEase: 'linear', adaptiveHeight: true, responsive: [{ breakpoint: 992, settings: { dots: true, infinite: true, speed: 500, fade: true, cssEase: 'linear', adaptiveHeight: true } }] }); /* Get iframe src attribute value i.e. YouTube video url and store it in a variable */ var url = jQuery("#wpem-youtube-modal-popup .wpem-modal-content iframe").attr('src'); /* Assign empty url value to the iframe src attribute when modal hide, which stop the video playing */ jQuery(".wpem-modal-close").on('click', function() { jQuery("#wpem-youtube-modal-popup .wpem-modal-content iframe").attr('src', ''); }); /* Assign the initially stored url back to the iframe src attribute when modal is displayed again */ jQuery("#event-youtube-button").on('click', function() { jQuery("#wpem-youtube-modal-popup .wpem-modal-content iframe").attr('src', url); }); });

Categories:

Tags:

Comments are closed

Articles récents