mirror of
https://github.com/Oreolek/oreolek.ru.git
synced 2024-05-17 00:18:22 +03:00
8 lines
161 B
JavaScript
8 lines
161 B
JavaScript
$('.date').each(function(){
|
|
if ($(this).text() != '')
|
|
{
|
|
var day = moment($(this).text());
|
|
$(this).text(day.fromNow()+", "+day.format('LL'));
|
|
}
|
|
});
|