X-Git-Url: https://git.p6c8.net/jirafeau/jirafeau.git/blobdiff_plain/3c708cc1e3834dc936e2480261aec9ad56f66a48..56aae3afa9286b92174f113fd39cfd0fb7b93b2e:/index.php diff --git a/index.php b/index.php index 4881c51..2b84013 100644 --- a/index.php +++ b/index.php @@ -163,7 +163,8 @@ if ($cfg['download_password_requirement'] === 'generated') { if ($cfg['download_password_requirement'] === 'required') { echo ' required'; } - echo '/>'; + echo ' /> '; + echo ''; }?> @@ -225,5 +226,12 @@ if ($max_size > 0) { addCopyListener('delete_link_button', 'delete_link'); addTextCopyListener('password_copy_button', 'output_key'); // @license-end +// show password toggle + document.getElementById('show_password')?.addEventListener('change', function() { + const pwd = document.getElementById('input_key'); + if (pwd) { + pwd.type = this.checked ? 'text' : 'password'; + } + });