Skip to content

Commit e94eddd

Browse files
committed
fix 4
1 parent e4da79b commit e94eddd

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Password Strength Meter/script.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,7 @@ let regExpStrong = /.[!,@,#,$,%,^,&,*,(,)]/;
1313

1414

1515
document.getElementById("trigger").addEventListener("keyup", function() {
16-
if (input.value != "") {
17-
indicator.style.display = "flex";
18-
19-
20-
} else {
21-
indicator.style.display = "none";
22-
text.style.display = "none";
23-
showBtn.style.display = "none";
24-
}
25-
16+
2617
if (input.value.length <= 3 && (input.value.match(regExpWeak) || input.value.match(regExpMedium) || input.value.match(regExpStrong))) no = 1;
2718

2819
if (input.value.length >= 6 && ((input.value.match(regExpWeak) && input.value.match(regExpMedium)) || (input.value.match(regExpMedium) && input.value.match(regExpStrong)) || (input.value.match(regExpWeak) && input.value.match(regExpStrong)))) no = 2;

0 commit comments

Comments
 (0)