From 7aa203150fc1a2ec79c681c13f0d486d531746eb Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Sun, 12 Mar 2023 23:57:48 +0200 Subject: error pages; js system to support back/front-end --- html/content/js/Forms/clearinput.js | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 html/content/js/Forms/clearinput.js (limited to 'html/content/js/Forms/clearinput.js') diff --git a/html/content/js/Forms/clearinput.js b/html/content/js/Forms/clearinput.js deleted file mode 100644 index 903244f..0000000 --- a/html/content/js/Forms/clearinput.js +++ /dev/null @@ -1,16 +0,0 @@ -$$plugins.define('clearinput', function (element, options) { - var input = element.previousElementSibling; - - input.addEventListener("keyup", function (e) { - e.preventDefault(); - if (input.value !== "") { - element.classList.add("active"); - } - }); - - element.addEventListener("click", function (e) { - e.preventDefault(); - input.value = ""; - element.classList.remove("active"); - }); -}); -- cgit v1.2.3