diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-10-23 17:42:28 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-10-23 17:42:28 +0300 |
commit | 46421fedf6fe291bfcb63482f3bfa9bb2c7fdff6 (patch) | |
tree | 53d85f05c362230a428ca5593125ba1a1341799d /docs/assets/js/fancydates.js | |
parent | 410bb2715ce7c9f8d796704395cb44d76e2e884c (diff) | |
download | ck-46421fedf6fe291bfcb63482f3bfa9bb2c7fdff6.tar.gz ck-46421fedf6fe291bfcb63482f3bfa9bb2c7fdff6.tar.bz2 ck-46421fedf6fe291bfcb63482f3bfa9bb2c7fdff6.zip |
Remove site clutter and rename test folder (tests -> test)
Diffstat (limited to 'docs/assets/js/fancydates.js')
-rw-r--r-- | docs/assets/js/fancydates.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/docs/assets/js/fancydates.js b/docs/assets/js/fancydates.js deleted file mode 100644 index d13b11b..0000000 --- a/docs/assets/js/fancydates.js +++ /dev/null @@ -1,20 +0,0 @@ -function fancydates(fanciness, date_format) { - if (fanciness == 0) { - return; - } - - dates = $('time.published.dt-published'); - - i = 0; - l = dates.length; - - for (i = 0; i < l; i++) { - d = moment(dates[i].attributes.datetime.value); - if (fanciness == 1) { - o = d.local().format(date_format); - } else { - o = d.fromNow(); - } - dates[i].innerHTML = o; - } -} |