diff options
Diffstat (limited to 'assets')
-rw-r--r-- | assets/js/index.js | 7 | ||||
-rw-r--r-- | assets/js/initMoment.js | 4 |
2 files changed, 4 insertions, 7 deletions
diff --git a/assets/js/index.js b/assets/js/index.js index 03ab427..08ef756 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -22,10 +22,3 @@ $(document).keypress(function(e) { $('.modal.is-active').removeClass('is-active'); } }); - -{{ if and .Site.Params.localTime .Page.IsHome }} -$(document).ready(function() { - var time = moment().tz("{{ .Site.Params.timeZone }}").format("h:mm A"); - $('#time').html(time); -}) -{{ end }} diff --git a/assets/js/initMoment.js b/assets/js/initMoment.js new file mode 100644 index 0000000..0e8c95d --- /dev/null +++ b/assets/js/initMoment.js @@ -0,0 +1,4 @@ +$(document).ready(function() { + var time = moment().tz("{{ .Site.Params.timeZone }}").format("h:mm A"); + $('#time').html(time); +}) |