mirror of
https://github.com/flarum/framework.git
synced 2024-12-01 14:20:47 +08:00
11 lines
254 B
JavaScript
11 lines
254 B
JavaScript
import humanTime from 'flarum/utils/human-time';
|
|
|
|
export default function(app) {
|
|
setInterval(function() {
|
|
$('[data-humantime]').each(function() {
|
|
var $this = $(this);
|
|
$this.html(humanTime($this.attr('datetime')));
|
|
});
|
|
}, 1000);
|
|
}
|