HEX
Server: Apache
System: Linux vps.rockyroadprinting.net 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: rockyroadprintin (1011)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/rockyroadprintin/public_html/wp-content/themes/woodmart/js/scripts/global/clearSearch.min.js
woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.clearSearch()}),jQuery.each(["frontend/element_ready/wd_search.default"],function(e,t){woodmartThemeModule.wdElementorAddAction(t,function(){woodmartThemeModule.clearSearch()})}),woodmartThemeModule.clearSearch=function(){function n(e,t){e.value.length?t.classList.remove("wd-hide"):(t.classList.add("wd-hide"),e.classList.remove("wd-search-inited"))}document.querySelectorAll("form .wd-clear-search").forEach(function(t){var e=t.closest("form").querySelector("input");e&&(n(e,t),e.addEventListener("keyup",function(){n(e,t)})),t.addEventListener("click",function(e){e.preventDefault();e=t.parentNode.querySelector("input");e.value="",e.dispatchEvent(new Event("keyup")),e.dispatchEvent(new Event("focus"))})})},window.addEventListener("wdEventStarted",function(){woodmartThemeModule.clearSearch()});