@kimchiver
Posted
Hello!
Your coding of design is excellent. (I like your History Back
style!)
I'd like to add a few js issues to the above:
-- "blur"
event does not work properly with button elements, at least in Safari /Version 16.6/. I suggest to do inactive-button.classList.remove("selected")
for all buttons inside a "click"
callback-function of the active element (like @RalfiSlask noticed)
-- it's better to use add/remove(class)
instead of toggle()
. When the user clicks the same number twice, toggle() switches off the active mode.
It may seems overwhelming today, but don't give up and keep up! In case you get into this, I'd like to recommend a really good source for web-development learning - www.w3schools.com
Marked as helpful
@SvitlanaSuslenkova
Posted
@kimchiver Thank you! It helped me. It works better!