January 29th 2018
Hello! Today at JavaScript_30days we did a countdown clock project, basically a timer on the page that we can set and it will count down from the given time. It is bit longer code and complicated one too, so I will more time to really understand it but it is really cool. The Date now() is used to get the current date which is manipulated into the needed hours, minutes, and seconds.
At the Web Development Bootcamp I did a color toggle exercise, where clicking the button changes the background color of the page to a color, then if you click it again it goes back.
button.addEventListener("click", function () {
document.body.classList.toggle("purple");
//if the body does not have the classList purple it will add it, but it checks if it has it will remove it
});
A bit shorter today, but I need to take care of some things, hopefully tomorrow will be longer.
Cheers!