nunta/js/agency.min.js

7 lines
902 B
JavaScript
Raw Normal View History

2018-05-03 07:38:23 +02:00
/*!
2019-05-29 20:06:03 +02:00
* Start Bootstrap - Agency v5.2.0 (https://startbootstrap.com/template-overviews/agency)
2019-02-01 04:25:33 +01:00
* Copyright 2013-2019 Start Bootstrap
2018-05-03 07:38:23 +02:00
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-agency/blob/master/LICENSE)
*/
!function(e){"use strict";e('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var a=e(this.hash);if((a=a.length?a:e("[name="+this.hash.slice(1)+"]")).length)return e("html, body").animate({scrollTop:a.offset().top-54},1e3,"easeInOutExpo"),!1}}),e(".js-scroll-trigger").click(function(){e(".navbar-collapse").collapse("hide")}),e("body").scrollspy({target:"#mainNav",offset:56});function a(){100<e("#mainNav").offset().top?e("#mainNav").addClass("navbar-shrink"):e("#mainNav").removeClass("navbar-shrink")}a(),e(window).scroll(a)}(jQuery);