Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets/js
diff options
context:
space:
mode:
authorMyGiHu <74786828+MyGiHu@users.noreply.github.com>2020-12-04 18:49:32 +0300
committerGitHub <noreply@github.com>2020-12-04 18:49:32 +0300
commit6925c0248cf70674576d42d173ff33b00a3d522a (patch)
treee3aaa7f60c15f717e7cce2eda7258c682cae22a2 /assets/js
parent293ab665ca52f3c7d8d3273ca79fa7949493b1ea (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.js11
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);
-})