You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
cosmopet.ae/wp-content/themes/woodmart22/js/scripts/wc/productVideo.js

29 lines
664 B

/* global woodmart_settings */
(function($) {
woodmartThemeModule.productVideo = function() {
if ('undefined' === typeof $.fn.magnificPopup) {
return;
}
$('.product-video-button a').magnificPopup({
tClose : woodmart_settings.close,
tLoading : woodmart_settings.loading,
type : 'iframe',
iframe : {
patterns: {
youtube: {
index: 'youtube.com/',
id : 'v=',
src : '//www.youtube.com/embed/%id%?rel=0&autoplay=1'
}
}
},
preloader : false,
fixedContentPos: false
});
};
$(document).ready(function() {
woodmartThemeModule.productVideo();
});
})(jQuery);