Server IP : 192.64.112.168 / Your IP : 3.149.214.28 Web Server : Apache System : Linux nc-ph-2300-85.bluforrest.com 4.18.0-513.9.1.el8_9.x86_64 #1 SMP Sat Dec 2 05:23:44 EST 2023 x86_64 User : expressoneac ( 1128) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/expressoneac/www/wp-content/themes/woodmart/js/scripts/elements/ |
Upload File : |
!function(d){d.each(["frontend/element_ready/wd_image_hotspot.default"],function(o,t){woodmartThemeModule.wdElementorAddAction(t,function(){woodmartThemeModule.imageHotspot()})}),woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.imageHotspot()}),woodmartThemeModule.imageHotspot=function(){d(".wd-image-hotspot").each(function(){var t=d(this),o=t.find(".hotspot-btn");!t.parents(".wd-image-hotspot-wrapper").hasClass("hotspot-action-click")&&1024<woodmartThemeModule.$window.width()||(o.on("click",function(){return(t.hasClass("hotspot-opened")?t:(t.addClass("hotspot-opened"),t.siblings())).removeClass("hotspot-opened"),d(".wd-image-hotspot .hotspot-content").each(function(){var o=d(this),t=(o.removeClass("hotspot-overflow-right hotspot-overflow-left"),o.attr("style",""),o.offset().left),e=woodmartThemeModule.$window.width()-(t+o.outerWidth());768<woodmartThemeModule.windowWidth&&(t<=0&&o.addClass("hotspot-overflow-right"),e<=0)&&o.addClass("hotspot-overflow-left"),woodmartThemeModule.windowWidth<=768&&(t<=0&&o.css("marginLeft",Math.abs(t-15)+"px"),e<=0)&&o.css("marginLeft",e-15+"px")}),woodmartThemeModule.$document.trigger("wood-images-loaded"),!1}),woodmartThemeModule.$document.on("click",function(o){o=o.target;if(t.hasClass("hotspot-opened")&&!d(o).is(".wd-image-hotspot")&&!d(o).parents().is(".wd-image-hotspot"))return t.removeClass("hotspot-opened"),!1}))}),d(".wd-image-hotspot-wrapper").each(function(){var o=d(this);o.imagesLoaded(function(){o.addClass("loaded")})})},d(document).ready(function(){woodmartThemeModule.imageHotspot()})}(jQuery);