UNPKG

devlegnd-page

Version:

DevLegnd | Un reto, una meta. | No importa tu necesidad, la desarrollamos.

7 lines (6 loc) 1.11 kB
/*! * Start Bootstrap - DevLegnd v2.0.0 (https://devlegnd.com) * Copyright 2013-2019 DevLegnd * Licensed under MIT (https://github.com/BlackrockDigital/devlegnd-page/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-72},1e3,"easeInOutExpo"),!1}}),e(".js-scroll-trigger").click(function(){e(".navbar-collapse").collapse("hide")}),e("body").scrollspy({target:"#mainNav",offset:75}),e(window).scroll(function(){200<e("#mainNav").offset().top?e("#mainNav").addClass("navbar-scrolled"):e("#mainNav").removeClass("navbar-scrolled")}),e("#portfolio").magnificPopup({delegate:"a",type:"image",tLoading:"Loading image #%curr%...",mainClass:"mfp-img-mobile",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.'}})}(jQuery);