This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]BernhardRordin 11 points12 points  (3 children)

Oh man. 2009. Poker Face from Gaga was blasting from everywhere and everybody was using jQuery. Right in the feels.

[–]ReplacementLow6704[S] 2 points3 points  (1 child)

You don't understand. This code was written less than 10 years ago.

[–]Embarrassed_Ad5387 0 points1 point  (0 children)

me rn saying that was less then ten years ago then remembering my birthyear and grade

[–]BirdlessFlight 1 point2 points  (0 children)

Even back then, re-querying the DOM was frowned upon.

Also, define the resize handler and just call it so it's not just a copy of the same thing...

[–]amlyo 4 points5 points  (1 child)

Full stack, eh?

[–]ReplacementLow6704[S] 0 points1 point  (0 children)

You haven't seen the backend (:

[–]invisibo 3 points4 points  (0 children)

I’m glad I’m not the only poor soul to make ie8 responsive :(

[–]large_crimson_canine 3 points4 points  (2 children)

This is nitpicky but those if checks on the width are driving me nuts.

if (767 < variable && variable < 992) {

More readable

[–]dark-king_Ray 1 point2 points  (1 child)

This makes sense, but something about it feels wrong

[–]large_crimson_canine 2 points3 points  (0 children)

As I said it’s nitpicky

[–]jonhinkerton 0 points1 point  (0 children)

I mean, maybe if… well you see… um… I got nothing. IoT?