46th Js project - Darkmode with LocalStorage Source Code

Pubblicato il: 31 luglio 2021
sul canale di: UI Monk
162
like

#1378 #javascriptproject

46th Javascript project - Darkmode with Localstorage Source Code
https://drive.google.com/file/d/1MHwM...

What to learn in this video
1. DarkMode
2. LocalStorage set and get

Steps to be Followed
1. Design HTML page to display darkmode
2. create CSS variable for switching to dark mode and light mode
3. javascript for on clicking checkbox add function dark mode
1. get the checkbox
2. add change event on the checkbox to toggle between dark and light
3. with the passed event, check if the checkbox is checked
4. use documentElement to change a global variable
5. use localStorage to store the data on checkbox checked
6. on page load check any value available on localStorage
7. if available update the documentElement
8. if localStorage has dark theme then check the checkbox on page load

Complete weekly Javascript projects playlist
   • 45th Javascript Project - Open Tab us...  


In questa pagina del sito puoi guardare il video online 46th Js project - Darkmode with LocalStorage Source Code della durata di ore minuti seconda in buona qualità , che l'utente ha caricato UI Monk 31 luglio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 162 volte e gli è piaciuto like spettatori. Buona visione!