Closed RajatX24 closed 1 month ago
@RajatX24 I am also contributing to another issue of the same project. But in my pr there is some issue. Could you please help me to figure out the problem?
@RajatX24 make a Pr verification request from the website
Description
This PR fixes the issue #1.
Summary:
Implemented a dynamic password strength indicator by adding a
strength-bar-container
and astrength-bar
in the HTML, styling them in CSS with properties like padding, border, and color. In the JavaScript, modified thecalcStrength
function to calculate password strength based on user-selected criteria (uppercase, lowercase, numbers, symbols), capping the strength at 100. ThesetStrengthBar
function updates the bar's color (green, yellow, red) and width according to the calculated strength percentage. Event listeners on input fields ensure that the strength is recalculated and displayed in real-time as users modify their input.Since its a dynamic password strength indicator, i feel screenshots don't do it justice. Here is a link to a short youtube video showing this feature in action:
https://youtu.be/B5bb6Jbpw1o?si=LXkmpqb7QJpOq_95
Detailed Walkthrough
In order to make a dynamic strength indicator, I have made the following changes:
Changes in
index.html
div
with class strength-bar-container. It provides the outline for the actual strength bar.div
with class strength-bar. This represents the actual strength bar. Its attributes such as the width and color are set using CSS and updated using JavaScript.Changes in
style.css
Changes in
script.js
Type of change
Screenshots:
Checklist:
Test Configuration: