Re:Triplebyte now showing profiles by default without consent
by alfu on Sunday May 23, 2021 @01:41PM
(#27256897)
The HN api includes the timestamp (unix time). For instance: https://hacker-news.firebaseio.com/v0/item/23279837.json?pri...
[ Parent
| on HN ]
Re:Triplebyte now showing profiles by default without consent
by ceejayoz on Sunday May 23, 2021 @01:48PM
(#27256975)
I wish all sites that do the “x units ago” thing would put the time stamp in a title attribute.
Re:Triplebyte now showing profiles by default without consent
by nitrogen on Sunday May 23, 2021 @06:07PM
(#27259068)
If any accessibility experts are reading, is there a best way to do this? E.g. title attribute is best for mouse users to hover on desktop, but is there a way that works for all users on devices? Maybe the abbr tag?
So far I haven't seen an html-only solution that works on mobile.
Re:Triplebyte now showing profiles by default without consent
by andreareina on Sunday May 23, 2021 @08:12PM
(#27259841)
Not an a11y expert but I imagine that's what the <time> element[1] is for.
[1] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ti...
Re:Triplebyte now showing profiles by default without consent
by kodah on Monday May 24, 2021 @12:57AM
(#27261186)
I've been developing my new website and use "x days ago" which is a feature of most date libraries like luxon or moment. I modeled what GitHub does where you can mouse over the text and it produces the actual timestamp. On mobile that doesn't work, so I print the date in disabled text.