nunta/js/agency.min.js

6 lines
733 B
JavaScript
Raw Normal View History

/*!
2016-08-19 22:33:32 +02:00
* Start Bootstrap - Agency v3.3.7+1 (http://startbootstrap.com/template-overviews/agency)
2017-01-18 22:32:37 +01:00
* Copyright 2013-2017 Start Bootstrap
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
*/
2016-11-30 03:03:56 +01:00
!function(a){"use strict";a("a.page-scroll").bind("click",function(n){var s=a(this);a("html, body").stop().animate({scrollTop:a(s.attr("href")).offset().top-54},1250,"easeInOutExpo"),n.preventDefault()}),a("body").scrollspy({target:"#mainNav",offset:55}),a("#navbarResponsive>ul>li>a").click(function(){a("#navbarResponsive").collapse("hide")}),a(window).scroll(function(){a("#mainNav").offset().top>100?a("#mainNav").addClass("navbar-shrink"):a("#mainNav").removeClass("navbar-shrink")})}(jQuery);