hugo-theme-introduction/layouts/partials/footer/scripts.html
2018-07-01 18:33:25 +02:00

21 lines
700 B
HTML

<!-- jQuery -->
<script src="{{ "/js/jquery-3.3.1.min.js" | relURL }}"></script>
<!-- index.js -->
<script defer src="{{ "/js/index.js" | relURL }}"></script>
<!-- local time -->
{{ if .Site.Params.localTime }}
<script defer src="{{ "/js/moment.js" | relURL }}"></script>
<script defer src="{{ "/js/moment-timezone.js" | relURL }}"></script>
<script defer src="{{ "/js/moment-timezone-with-data-2012-2022.js" | relURL }}"></script>
<script>
$(document).ready(function() {
var time = moment().tz("{{ .Site.Params.timeZone }}").format("h:mm A");
$('#time').html(time);
})
</script>
{{ end }}
<!-- Google Analytics -->
{{ template "_internal/google_analytics_async.html" . }}