index.html 680 B

123456789101112131415161718192021222324
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <link rel="stylesheet" href="./style.css">
  7. <title>Document</title>
  8. </head>
  9. <body>
  10. <script>
  11. function Password(parent, open = true){
  12. this.inputPassword = document.createElement("input");
  13. parent.append(this.inputPassword);
  14. this.inputPassword.placeholder = 'password';
  15. this.checkbox = document.createElement("input");
  16. parent.append(this.inputPassword);
  17. this.checkbox.type = 'checked';
  18. }
  19. </script>
  20. </body>
  21. </html>