The main goal of this project was to make a website, that only loads the index.html
file, and load the template when it's called without refreshing the index.
โข What's inside my single page app ?
- Register function :
It push your creditentials into the
localStorage
of your browser - Login function :
It gets the
localStorage
datas, and if the values are equivalent, the script will copy thelocalStorage
datas into thesessionStorage
- Rename function :
You can rename your username. It will be changed in the
localStorage
and thesessionStorage
- Logout function :
It delete the keys on the
sessionStorage
and put back the links to access the login and register templates.