hawkeye116477 6 years ago
parent
commit
1b14ded6d8
No account linked to committer's email address
2 changed files with 8 additions and 3 deletions
  1. 5
    1
      assets/js/bootstrap.bundle.js
  2. 3
    2
      layouts/partials/footer.html

static/plugins/bootstrap/dist/js/bootstrap.bundle.js → assets/js/bootstrap.bundle.js View File

@@ -145,7 +145,11 @@
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
}

return selector && document.querySelector(selector) ? selector : null;
try {
return document.querySelector(selector) ? selector : null
} catch (err) {
return null
}
},
getTransitionDurationFromElement: function getTransitionDurationFromElement(element) {
if (!element) {

+ 3
- 2
layouts/partials/footer.html View File

@@ -34,8 +34,9 @@

{{"<!-- Main jQuery -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/jquery/dist/jquery.min.js" | absURL}}"></script>
{{"<!-- Bootstrap 3.1 -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/bootstrap/dist/js/bootstrap.min.js" | absURL}}"></script>
{{"<!-- Bootstrap 4.2 + Popper -->" | safeHTML}}
{{ $bs := resources.Get "js/bootstrap.bundle.js" | minify}}
<script type="text/javascript" src="{{ $bs.Permalink }}"></script>
{{"<!-- Slick Carousel -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/slick-carousel/slick/slick.min.js" | absURL}}"></script>
{{"<!-- Portfolio Filtering -->" | safeHTML}}

Loading…
Cancel
Save