File manager - Edit - /home/antilam/web/antilam.ru/public_html/wp-content/themes/woodmart/js/scripts/elements/compareImages.min.js
Back
jQuery.each(["frontend/element_ready/wd_compare_img.default"],function(e,t){woodmartThemeModule.wdElementorAddAction(t,function(){woodmartThemeModule.compareImages()})}),woodmartThemeModule.compareImages=function(){function e(e,t){var n=t.getBoundingClientRect(),o=e.clientX-n.left;o<0&&(o=0),o>n.width&&(o=n.width);var d=(o/n.width*100).toFixed(3);t.style.setProperty("--wd-compare-handle-pos",`${d}%`)}document.querySelectorAll(".wd-compare-img").forEach(function(t){!function(t){var n=!1;t.addEventListener("mousedown",function(o){n=!0,e(o,t)}),document.addEventListener("mouseup",function(){n=!1}),t.addEventListener("mousemove",function(o){n&&e(o,t)}),t.addEventListener("touchstart",function(o){n=!0,e(o.touches[0],t)},{passive:!0}),document.addEventListener("touchend",function(){n=!1},{passive:!0}),t.addEventListener("touchmove",function(o){n&&e(o.touches[0],t)},{passive:!0})}(t)})},window.addEventListener("load",function(){woodmartThemeModule.compareImages()});
| ver. 1.4 |
Github
|
.
| PHP 8.4.22 | Generation time: 0.1 |
proxy
|
phpinfo
|
Settings