46th Js project - Darkmode with LocalStorage Source Code

Publicado el: 31 julio 2021
en el canal de: 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...  


En esta página del sitio puede ver el video en línea 46th Js project - Darkmode with LocalStorage Source Code de Duración hora minuto segunda en buena calidad , que subió el usuario UI Monk 31 julio 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 162 veces y le gustó like a los espectadores. Disfruta viendo!