Skip to content

Commit

Permalink
now can also see previously generated passwords on scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
search4asraful committed Feb 3, 2024
1 parent c239763 commit 605345c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,21 @@ button img {
width: 1rem;
margin: 0;
}
#passwordList::before {
content: "Recent :";
#passwordList span::before {
content: "Previous :";
color: limegreen;
margin-right: 15px;
}
#passwordList span:nth-of-type(1)::before {
content: "Recent : {";
color: limegreen;
margin-right: 15px;
}
#passwordList span:nth-of-type(1)::after {
content: "}";
color: limegreen;
margin-left: 15px;
}
#popup_overlay::before {
content: "";
width: 0;
Expand Down
2 changes: 1 addition & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function randomPassword(){
// Display passwords in the passwordList span
passwordList.innerHTML = passwordsHistory
.reverse()
.map((password) => `${password}<br><br>`)
.map((password) => `<span>${password}</span><br><br>`)
.join("");

if (passwordsHistory.length > 0) {
Expand Down

0 comments on commit 605345c

Please sign in to comment.