uci-hugo-landingpage/layouts/partials/js.html

51 lines
1.6 KiB
HTML
Raw Normal View History

2017-03-10 22:59:27 -08:00
<!-- CDNs -->
<!-- jQuery -->
<script src="https://cdn.jsdelivr.net/jquery/3.1.1/jquery.min.js"></script>
<!-- light gallery and modules/plugins -->
<script src="https://cdn.jsdelivr.net/g/lightgallery,lg-autoplay,lg-pager,lg-thumbnail,lg-video"></script>
2017-04-07 01:40:29 -07:00
<!-- scrollbar -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.perfect-scrollbar/0.6.16/js/perfect-scrollbar.jquery.min.js"></script>
<!-- highlights -->
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.10.0/highlight.min.js"></script>
2017-02-28 09:56:46 -08:00
2017-03-10 22:59:27 -08:00
<!-- LOCAL -->
<script src="/js/util.js"></script>
<!-- sizing tools -->
<script src="/js/fitToWindow.js"></script>
2017-03-28 16:59:10 -07:00
<script src="/js/flowType.js"></script>
<!-- videos embed -->
<script src="/js/youtube.js"></script>
2017-03-04 20:02:56 -08:00
<!-- development tools -->
2017-03-28 16:59:10 -07:00
<script src="/js/lorem.js"></script>
{{ if isset .Site.Params "googleAnalytics" }}
2017-03-28 16:59:10 -07:00
<script src="/js/analytics.js"></script>
{{ end }}
<!-- site specific functions for page use -->
2017-03-28 16:59:10 -07:00
<script src="/js/page.js"></script>
2017-03-04 20:02:56 -08:00
<!-- Document Ready - Initialize - Window resize calls -->
2017-03-28 16:59:10 -07:00
<script src="/js/docready.js"></script>
<!-- Custom/Override js files -->
{{ range .Site.Params.custom_js }}
<script src="/js/{{ . }}"></script>
{{ end }}
<!-- Initialize Photo Galleries with a Lightbox -->
{{ if .Site.Params.galleries }}
<script>
$(document).ready(function () {
{{ range.Site.Params.galleries }}
{{ $.Site.Params.lightbox | safeJS }}('#{{ . }}'){{ end }}
});
</script>
{{ end }}
<!-- use same lightbox for full sized images in when link="modal" -->
<script>
$(document).ready(function () {
{{ $.Site.Params.lightbox | safeJS }}('.box--image')
});
</script>