| Server IP : 62.60.133.156 / Your IP : 216.73.217.51 Web Server : LiteSpeed System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64 User : mimradmin ( 1166) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mimradmin/.trash/wp-content.1/themes/woodmart/js/scripts/elements/ |
Upload File : |
/* global woodmart_settings */
(function($) {
$.each([
'frontend/element_ready/wd_3d_view.default'
], function(index, value) {
woodmartThemeModule.wdElementorAddAction(value, function() {
woodmartThemeModule.view3d();
});
});
woodmartThemeModule.view3d = function() {
$('.wd-threed-view:not(.wd-product-threed)').each(function() {
init($(this));
});
$('.product-360-button a').on('click', function(e) {
e.preventDefault();
init($('.wd-threed-view.wd-product-threed'));
});
function init($this) {
var data = $this.data('args');
if (!data || $this.hasClass('wd-threed-view-inited')) {
return false;
}
$this.ThreeSixty({
totalFrames : data.frames_count,
endFrame : data.frames_count,
currentFrame : 1,
imgList : '.threed-view-images',
progress : '.spinner',
imgArray : data.images,
height : data.height,
width : data.width,
responsive : true,
navigation : true,
prevNextFrames : woodmart_settings.three_sixty_prev_next_frames,
framerate : woodmart_settings.three_sixty_framerate,
});
$this.addClass('wd-threed-view-inited');
}
};
$(document).ready(function() {
woodmartThemeModule.view3d();
});
})(jQuery);