spolszczenie wszystkiego i poprawki
This commit is contained in:
@@ -9,11 +9,11 @@
|
||||
}, false);
|
||||
})();
|
||||
|
||||
const pw = document.getElementById('password');
|
||||
const pw = document.getElementById("haslo");
|
||||
const toggle = document.getElementById('togglePw');
|
||||
toggle.addEventListener('click', () => {
|
||||
const isText = pw.type === 'text';
|
||||
pw.type = isText ? 'password' : 'text';
|
||||
pw.type = isText ? "haslo" : 'text';
|
||||
toggle.textContent = isText ? 'Pokaż' : 'Ukryj';
|
||||
toggle.setAttribute('aria-pressed', (!isText).toString());
|
||||
pw.focus();
|
||||
|
Reference in New Issue
Block a user