All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.textinputeffects.textinputeffects.min.js Maven / Gradle / Ivy

There is a newer version: 1.2.2.1-jre17
Show newest version
(function(){if(!String.prototype.trim){(function(){var rtrim=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;String.prototype.trim=function(){return this.replace(rtrim,"")}})()}[].slice.call(document.querySelectorAll("input.input__field")).forEach(function(inputEl){if(inputEl.value.trim()!==""){classie.add(inputEl.parentNode,"input--filled")}inputEl.addEventListener("focus",onInputFocus);inputEl.addEventListener("blur",onInputBlur)});function onInputFocus(ev){classie.add(ev.target.parentNode,"input--filled")}function onInputBlur(ev){if(ev.target.value.trim()===""){classie.remove(ev.target.parentNode,"input--filled")}}})();




© 2015 - 2024 Weber Informatics LLC | Privacy Policy