Untitled
unknown
plain_text
16 days ago
1.4 kB
1
Indexable
Never
# WiFi Password Coding <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>WiFi Password Generator</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; margin: 0; padding: 20px; } h1 { color: #333; } #password { font-size: 24px; font-weight: bold; color: #007BFF; } button { padding: 10px 15px; font-size: 16px; cursor: pointer; } </style> </head> <body> <h1>WiFi Password Generator</h1> <button onclick="generatePassword()">Generate Password</button> <p id="password"></p> <script> function generatePassword() { const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()'; let password = ''; const passwordLength = 12; for (let i = 0; i < passwordLength; i++) { const randomIndex = Math.floor(Math.random() * characters.length); password += characters[randomIndex]; } document.getElementById('password').innerText = password; } </script> </body> </html>
Leave a Comment