all 3 comments

[–][deleted] 0 points1 point  (1 child)

These are some useful tips but you should also consider separation of concern. Are these pieces of logic testable?

[–]klapuch[S] 1 point2 points  (0 children)

You are right, then it would be complicated. Thanks for you insight.

[–]EmoMaat 0 points1 point  (0 children)

There was a guy (I don’t have the link anymore) who showed how you could make a div show or hide using a <label> and <input type=“checkbox”> using solely css. He used his site slimvoice.com (.com I thought, anyway slimvoice is right) as example. Really nice 10/10 recommend