Hello everyone! This is my solution to this challenge!
I'd like to know if there is a simpler way to make the rating buttons color change after we click on them. As you can see my solution (function checkAndVerify(value)) for this is super large.
Hello everyone! This is my solution to this challenge!
I'd like to know if there is a simpler way to make the rating buttons color change after we click on them. As you can see my solution (function checkAndVerify(value)) for this is super large.
Hey @pripc..i thought of changing the rating buttons color with CSS alone. Where by I change the color when hovering and when the button is active. You can also shorten your js by this: rates.forEach((rate)=>{ rate.addEventListener("click", ()=>{ rating.innerHTML = rate.innerHTML; submitButton.addEventListener("click", ()=>{ thanksContainer.classList.remove("hidden"); mainContainer.style.display = "none"; rateAgain.addEventListener("click", ()=> { thanksContainer.classList.add("hidden"); mainContainer.style.display="block"; }) }) }) })
Hey @Dev3r3nze....I like your solution though it seems you have not added javascript to toggle the navbar. you can checkout on W3 schools on how to make a mobile responsive navBar with javascripts. Happy coding