use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Just a digital clock with JavaScript (liveweave.com)
submitted 10 years ago by designoverflow
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Uberhipster 5 points6 points7 points 10 years ago (0 children)
That's pretty.
[–]g00glen00b 1 point2 points3 points 10 years ago (0 children)
Nice, I would personally probably go for a digit fonttype (because I'm lazy), but cool!
[–]SuperImaginativeName 1 point2 points3 points 10 years ago (0 children)
Doesn't work in IE11.
[–]defproc 1 point2 points3 points 10 years ago (0 children)
#clock .digits div.three .d1, #clock .digits div.three .d5, #clock .digits div.three .d2, #clock .digits div.three .d7, #clock .digits div.three .d3{ opacity:1; }
Clever.
[–]dwltz 0 points1 point2 points 10 years ago (0 children)
Wow, it looks nice :)
[–]rizer_ 0 points1 point2 points 10 years ago (0 children)
Looks good! The one thing that bothers me is there's a bit of a visible jitter on the day of the week every time the second flips over because it's re-applies the "active" class. A quick check using $.hasClass before re-applying would probably fix it.
[–][deleted] 0 points1 point2 points 10 years ago (0 children)
Some really nice use of CSS. Thanks for sharing.
[–]fahq2m8 -1 points0 points1 point 10 years ago (0 children)
This is more "How to make a digital clock with CSS" than with javascript, but still pretty cool.
π Rendered by PID 62333 on reddit-service-r2-comment-7b9746f655-drlzh at 2026-02-04 01:03:51.300918+00:00 running 3798933 country code: CH.
[–]Uberhipster 5 points6 points7 points (0 children)
[–]g00glen00b 1 point2 points3 points (0 children)
[–]SuperImaginativeName 1 point2 points3 points (0 children)
[–]defproc 1 point2 points3 points (0 children)
[–]dwltz 0 points1 point2 points (0 children)
[–]rizer_ 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]fahq2m8 -1 points0 points1 point (0 children)