Closed chernjie closed 10 years ago
Should fix #14
Future events should be something like: in 5 hours ... not "5 hours ago"
I don't like the Jquery+plugin route. Sucks.
Maybe http://momentjs.com/downloads/moment.min.js is better since it's less code and doesn't seem to require Jquery on first glance.
I'd rather not use a CDN, just have everything hosted on http://hackerspace.sg/ so that if something external fails, we don't fail.
+1 for moment.. It's awesome!
hmmm http://jsperf.com/date-formatting/8
Yes, it looks like it can do relative time.
Nice work CJ. My only beef is that https://github.com/chernjie/hackerspace.sg/blob/master/templates/index.mustache#L37 should be using http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-time-element not the abbr tag.
Yeah was contemplating whether to use abbr
or time
then decided to be old school. Feel free to change it!
Feel free to clean up on hotlinking/javascript stuff.
There are still a couple of minor issues: