Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
HassanEssam0110 committed Dec 29, 2023
1 parent c6795e8 commit 2aff464
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Assignment-10 [Login JS & LocalStorage]/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const emailPattern = /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/
const passwordPattern = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z]).{8,}$/

// handle home page & welcome text
console.log(window.location.pathname);
if (window.location.pathname === '/LoginSystem-JS/home.html') {
currentUser.logged === false ? openWindow('index.html') : sayWelcome();
}
Expand Down
2 changes: 1 addition & 1 deletion assets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ let assignmentsList = [
{ title: 'Assignment-10 [Login JS & LocalStorage]', demo: './Assignment-10 [Login JS & LocalStorage]/index.html', img: './Assignment-10 [Login JS & LocalStorage]/output.png' },
];
let otherTopicsList = [
{ title: '[Tempo-Template]', demo: './[Tempo-Template]/index.html', img: './[Tempo-Template]/output.png' },
{ title: 'Bootstrap-Exam [Daniels Template]', demo: './Bootstrap-Exam [Daniels Template]/index.html', img: './Bootstrap-Exam [Daniels Template]/output.png' },
{ title: '[Tempo-Template]', demo: './[Tempo-Template]/index.html', img: './[Tempo-Template]/output.png' },
{ title: 'CSS Tricks [Create An Equal Height Bootstrap-5 Cols]', demo: './CSS Tricks [Create An Equal Height Bootstrap-5 Cols]/index.html', img: './CSS Tricks [Create An Equal Height Bootstrap-5 Cols]/output.png' },
{ title: 'CSS Tricks [Gradient tricks]', demo: './CSS Tricks [Gradient tricks]/index.html', img: './CSS Tricks [Gradient tricks]/output.png' },
];
Expand Down

0 comments on commit 2aff464

Please sign in to comment.