Today: "1 hour ago", yesterday: "yesterday, 11:44", earlier: "12 days ago, 01 Oct 2015, 10:45"
< Opiniones de KAT: smart full date/time
I think it would be better if you submit your code as a separate script, the MIT license allows it. Since you use the KAT site, unlike me, you'll be able to update the script. If you do, I'll hide my script from the listing. Also add a // @contributor q1k
and increase the version to 1.1.0
(because your changes are more substantial than a mere bugfix) in the metablock.
But what I can't figure out is thisvar text = prefix ? prefix + time : time + ', ' + n.innerHTML + '';
The way I see it, is that the full date will be added as a prefix to the original text. Correct?
So whatever I try to do to swap these around, so that the full date is appended on the original text, I end up with a non functional script.
I did a "few" changes :)
Thank you for this.