From 7501d551c1898bc298d832a10e5f1f67085f24e8 Mon Sep 17 00:00:00 2001 From: Prince-Bassi Date: Thu, 1 Jan 2026 23:21:05 +0530 Subject: [PATCH] Added length input for generating variable length passwords --- Password Generator/index.css | 20 ++++++++++++++++++ Password Generator/index.html | 6 ++++++ Password Generator/index.js | 38 ++++++++++++++++++++++++----------- 3 files changed, 52 insertions(+), 12 deletions(-) diff --git a/Password Generator/index.css b/Password Generator/index.css index b8bbf74..185e8ed 100644 --- a/Password Generator/index.css +++ b/Password Generator/index.css @@ -26,6 +26,26 @@ body{ border-radius:.5rem; } +#length-input label { + font-size: large; + font-weight: 500; + color: #55F991; + margin-right: 1rem; +} + +#length-input input { + color: white; + background-color: #273549; + border: 2px solid black; + padding: .5rem; + min-width: 5rem; + border-radius: .5rem; +} + +#length-input input:focus { + outline: none; +} + hr{ color: #273549; position: absolute; diff --git a/Password Generator/index.html b/Password Generator/index.html index 4e75e50..a356f1f 100644 --- a/Password Generator/index.html +++ b/Password Generator/index.html @@ -12,6 +12,12 @@

Generate a

random password

Never use an insecure password

+ +
+ + +
+