adasd
All checks were successful
Deploy / deploy-staging (push) Successful in 25s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-06-15 21:27:08 +02:00
parent 7476f09d19
commit 94ea3c58af
8 changed files with 332 additions and 29 deletions

View File

@@ -0,0 +1,18 @@
document.addEventListener('DOMContentLoaded', () => {
const rows = document.querySelectorAll('.login-password-row');
rows.forEach((row) => {
const input = row.querySelector('[data-password-field]');
const toggle = row.querySelector('[data-password-toggle]');
if (!(input instanceof HTMLInputElement) || !(toggle instanceof HTMLButtonElement)) {
return;
}
toggle.addEventListener('click', () => {
const isHidden = input.type === 'password';
input.type = isHidden ? 'text' : 'password';
toggle.setAttribute('aria-label', isHidden ? 'Passwort verbergen' : 'Passwort anzeigen');
});
});
});