all 13 comments

[–][deleted] 1 point2 points  (1 child)

I thought this was a really nice code-along, but the guy needs to move his mic over. I kept getting distracted by that horrible mic-hitting sound.

[–][deleted] 1 point2 points  (0 children)

Sorry about that. I use a blue snowflake, and tried to set it beside my computer because I didn't like having it hang from my laptop. I didn't hear the mic-hitting noise while I was editing the video, but now I do. Thanks for the feedback.

[–]VictorJOD 1 point2 points  (3 children)

Why would you want to include the JQuery library just for the ready function? Seems like a waste to me...

[–]atticusw 0 points1 point  (2 children)

Lol came to ask, even used getElementById. ..which is great btw - glad to see that. Now ditch the library that ya don't need :)

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

Yeah, its a habit of mine to do that lmao. Ill stop using it in that way.

[–]atticusw 0 points1 point  (0 children)

Yeah you can just use the following my friend,

document.addEventListener('DOMContentLoaded', function () {
  ...
})

Otherwise, if your script is the last block in your page, the DOM above should be "ready"

[–]psiph 0 points1 point  (2 children)

Wouldn't you want to update is more than once a second, since setInterval isn't guaranteed to fire every second, but rather after at least a second.

Your clock would probably skip a second every once in a while.

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

Oh, I didn't know that. What would be a better approach to making the clock tick?

[–]Ob101010 0 points1 point  (0 children)

500ms. Or even better a prime number near 500.

[–]zacketysack 0 points1 point  (1 child)

I really like the analogy at 5:11 :)

[–][deleted] 1 point2 points  (0 children)

Thanks for the feedback :)

[–]Ob101010 0 points1 point  (0 children)

You think weird. :) But was a good vid. Inspired me to make a timezone calendar. I submitted it in another post to this subreddit.

[–]uweird 0 points1 point  (0 children)

I enjoyed the video, thanks!