diff options
author | MyGiHu <74786828+MyGiHu@users.noreply.github.com> | 2020-12-04 18:49:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-04 18:49:32 +0300 |
commit | 6925c0248cf70674576d42d173ff33b00a3d522a (patch) | |
tree | e3aaa7f60c15f717e7cce2eda7258c682cae22a2 /assets/js | |
parent | 293ab665ca52f3c7d8d3273ca79fa7949493b1ea (diff) |
Replacing Moment.js with native JavaScript (#266)
* fix-262
* Replacing Moment.js with native JavaScript
Diffstat (limited to 'assets/js')
-rw-r--r-- | assets/js/initMoment.js | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/assets/js/initMoment.js b/assets/js/initMoment.js deleted file mode 100644 index 9b7cb33..0000000 --- a/assets/js/initMoment.js +++ /dev/null @@ -1,11 +0,0 @@ -$(document).ready(function() { - const tnode = $("#time") - const update_localtime = function(){ - var time = moment() - .tz(tnode.attr("data-time-zone")) - .format(tnode.attr("data-time-format")); - tnode.html(time); - } - update_localtime(); - setInterval(update_localtime, 1000); -}) |