CoreFiles by mySites.guru
password-toggle.min.js2 lines, 847 bytes, from wordpress-6.9.zip
Raw History Compare with 6.8.13
md5
ca6ac722edc2bbeed5efc09d561fafc5
sha1
8314c04a23a30194c895203e1af815b95b9ae7d2
sha256
c4da88173fc9a464b849bfa20d369c1818ca5cef8db2b1b3094efca9c356e54e
/*! This file is auto-generated */
!function(){var t,e,s,i,a=wp.i18n.__;function d(){t=this.getAttribute("data-toggle"),e=this.parentElement.children.namedItem("pwd"),s=this.getElementsByClassName("dashicons")[0],i=this.getElementsByClassName("text")[0],0===parseInt(t,10)?(this.setAttribute("data-toggle",1),this.setAttribute("aria-label",a("Hide password")),e.setAttribute("type","text"),i.innerHTML=a("Hide"),s.classList.remove("dashicons-visibility"),s.classList.add("dashicons-hidden")):(this.setAttribute("data-toggle",0),this.setAttribute("aria-label",a("Show password")),e.setAttribute("type","password"),i.innerHTML=a("Show"),s.classList.remove("dashicons-hidden"),s.classList.add("dashicons-visibility"))}document.querySelectorAll(".pwd-toggle").forEach(function(t){t.classList.remove("hide-if-no-js"),t.addEventListener("click",d)})}();

The same content is in 213 releases, WordPress 6.3-beta1 to 7.2-RC2. See them all, or every version of this file.