Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
immortalist
/
wp-content
/
themes
/
woodmart
/
js
/
scripts
/
elements
:
compareImages.min.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
jQuery.each(["frontend/element_ready/wd_compare_img.default"],function(e,t){woodmartThemeModule.wdElementorAddAction(t,function(){woodmartThemeModule.compareImages()})}),woodmartThemeModule.compareImages=function(){function n(e,t){var o=t.getBoundingClientRect(),e=e.clientX-o.left,e=((e=(e=e<0?0:e)>o.width?o.width:e)/o.width*100).toFixed(3);t.style.setProperty("--wd-compare-handle-pos",e+"%")}document.querySelectorAll(".wd-compare-img").forEach(function(e){var t,o;o=!1,(t=e).addEventListener("mousedown",function(e){o=!0,n(e,t)}),document.addEventListener("mouseup",function(){o=!1}),t.addEventListener("mousemove",function(e){o&&n(e,t)}),t.addEventListener("touchstart",function(e){o=!0,n(e.touches[0],t)},{passive:!0}),document.addEventListener("touchend",function(){o=!1},{passive:!0}),t.addEventListener("touchmove",function(e){o&&n(e.touches[0],t)},{passive:!0})})},window.addEventListener("load",function(){woodmartThemeModule.compareImages()});