2019-03-06 10:42:59 +01:00
|
|
|
function fancydates(t,e){if(0!=t)for(var a=document.querySelectorAll(".dt-published, .dt-updated, .listdate"),o=a.length,r=0;r<o;r++){var d,l=moment(a[r].attributes.datetime.value);d=1==t?l.local().format(e):l.fromNow(),a[r].innerHTML=d}}
|