redo ago.js, remove therubyracer gem

This commit is contained in:
jomo
2014-11-15 21:00:00 +01:00
parent ebab21445b
commit 110bc2a248
4 changed files with 79 additions and 45 deletions

View File

@@ -42,12 +42,5 @@ $(function(){
}
});
updateTimestamps();
setInterval(updateTimestamps, 1000*10);
});
function updateTimestamps() {
$('time').ago(function(elem){
return new Date($(elem).attr('datetime'));
});
}
var ago = new Ago();
});