I’d be really grateful if someone could make some time to review my code – not the design, but what’s inside the js: I kind of feel that my code is excessive and does not look cool enough. Especially I’m worrying about a bunch of nested if-else statements in
$('.quarter').click(function....) Or the #checkbox click func… Can it be done in more of a gracious way?
What about lack of comments? I’ve read recently that you shouldn’t comment on what’s happening in the code, instead you comment on what a function does, what it’s returning; also, why it looks the way it looks. I’m confused cause I do not feel the difference between these statements, hence I can not differ a bad commentary from a good. So I’m looking for a comments on my commenting style also.
Here’s my work: http://codepen.io/lfg_/pen/WxyEaq?editors=0010#0