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.
26 lines
629 B
26 lines
629 B
/* global woodmart_settings */
|
|
(function($) {
|
|
woodmartThemeModule.product360Button = function() {
|
|
if ('undefined' === typeof $.fn.magnificPopup) {
|
|
return;
|
|
}
|
|
|
|
$('.product-360-button a').magnificPopup({
|
|
type : 'inline',
|
|
mainClass : 'mfp-fade',
|
|
preloader : false,
|
|
tClose : woodmart_settings.close,
|
|
tLoading : woodmart_settings.loading,
|
|
fixedContentPos: false,
|
|
callbacks : {
|
|
open: function() {
|
|
woodmartThemeModule.$window.trigger('resize');
|
|
}
|
|
}
|
|
});
|
|
};
|
|
|
|
$(document).ready(function() {
|
|
woodmartThemeModule.product360Button();
|
|
});
|
|
})(jQuery);
|
|
|