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

footer_scripts.html « partials « layouts - github.com/aerohub/hugo-identity-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8908f369c4866e3cf2327684ae80aafca7f1cfa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!-- Scripts -->
<!--[if lte IE 8]><script src="/js/respond.min.js"></script><![endif]-->
<script>
  if ('addEventListener' in window) {
    window.addEventListener('load', function() { document.body.className = document.body.className.replace(/\bis-loading\b/, ''); });
    document.body.className += (navigator.userAgent.match(/(MSIE|rv:11\.0)/) ? ' is-ie' : '');
  }
</script>

{{ if .Site.Params.contact.enable }}
  {{ "<!-- Form Validation -->" | safeHTML }}
  <script src="{{ "assets/js/jquery-v3.3.1/jquery.min.js" | absURL }}"></script>
  <script src="{{ "assets/js/bootstrap-v3.3.7/bootstrap.min.js" | absURL }}" async defer></script>
  <script src="{{ "assets/js/jquery.form-validator-v2.3.44/jquery.form-validator.min.js" | absURL }}" async defer></script>
  <script src="{{ "assets/js/contact.js" | absURL }}" async defer></script>
{{ end }}

{{ template "_internal/google_analytics_async.html" . }}

{{ if .Site.Params.analytics.piwik }}
  {{ partial "_analytics/piwik.html" . }}
{{ end }}

{{ range .Site.Params.custom_js }}
  <script src="{{ . | absURL }}" async defer></script>
{{ end }}

  {{ with .Site.Params.contact.captcha }}
    <script src='https://www.google.com/recaptcha/api.js' async defer></script>
  {{ end }}