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
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/initMoment.js')
-rw-r--r--assets/js/initMoment.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/assets/js/initMoment.js b/assets/js/initMoment.js
new file mode 100644
index 0000000..20a0a4b
--- /dev/null
+++ b/assets/js/initMoment.js
@@ -0,0 +1,4 @@
+$(document).ready(function() {
+ var time = moment().tz("{{ .Site.Params.home.timeZone }}").format("h:mm A");
+ $('#time').html(time);
+})