--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/static/candolint.js Sun Jul 30 13:25:20 2017 +0800
+ var humanizeTimestamps = function() {
+ $('time[datetime]').each(function() {
+ $this.text(moment($this.attr('datetime')).fromNow());
+ window.setInterval(humanizeTimestamps, 15 * 1000);
--- a/templates/base.html Sat Jul 22 13:38:49 2017 +0800
+++ b/templates/base.html Sun Jul 30 13:25:20 2017 +0800
{% block content %}{% end %}
- var humanizeTimestamps = function() {
- $('time[datetime]').each(function() {
- $this.text(moment($this.attr('datetime')).fromNow());
- window.setInterval(humanizeTimestamps, 15 * 1000);
+ <script src="/static/candolint.js"></script>