20 lines
580 B
JavaScript
20 lines
580 B
JavaScript
window.addEventListener( 'load', (event) => {
|
|
load();
|
|
});
|
|
|
|
function load() {
|
|
let postgres_password_change_readbility = document.querySelector('#change_readable_password');
|
|
postgres_password_change_readbility.addEventListener('click', (event) => {
|
|
change_readbility_password();
|
|
});
|
|
}
|
|
|
|
function change_readbility_password() {
|
|
let postgres_password = document.querySelector('#postgres_password');
|
|
if ( postgres_password.type === 'password' ) {
|
|
postgres_password.type = 'text';
|
|
} else {
|
|
postgres_password.type = 'password';
|
|
}
|
|
}
|