From a3b0d48c84a40f1923da0ad638dbddd6391dbeba Mon Sep 17 00:00:00 2001 From: David Miller Date: Fri, 20 Oct 2017 18:37:01 -0400 Subject: [PATCH] recompile JS and remove popper from gulp file --- gulpfile.js | 3 --- js/agency.js | 1 + js/agency.min.js | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 8489c3d..62a8267 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -74,9 +74,6 @@ gulp.task('copy', function() { gulp.src(['node_modules/jquery/dist/jquery.js', 'node_modules/jquery/dist/jquery.min.js']) .pipe(gulp.dest('vendor/jquery')) - gulp.src(['node_modules/popper.js/dist/umd/popper.js', 'node_modules/popper.js/dist/umd/popper.min.js']) - .pipe(gulp.dest('vendor/popper')) - gulp.src(['node_modules/jquery.easing/*.js']) .pipe(gulp.dest('vendor/jquery-easing')) diff --git a/js/agency.js b/js/agency.js index 52e8c05..384319b 100644 --- a/js/agency.js +++ b/js/agency.js @@ -26,6 +26,7 @@ offset: 54 }); + // Collapse Navbar var navbarCollapse = function() { if ($("#mainNav").offset().top > 100) { $("#mainNav").addClass("navbar-shrink"); diff --git a/js/agency.min.js b/js/agency.min.js index f96332a..f8d8653 100644 --- a/js/agency.min.js +++ b/js/agency.min.js @@ -3,4 +3,4 @@ * Copyright 2013-2017 Start Bootstrap * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-agency/blob/master/LICENSE) */ -(function(b){b('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var c=b(this.hash);c=c.length?c:b("[name="+this.hash.slice(1)+"]");if(c.length){b("html, body").animate({scrollTop:(c.offset().top-54)},1000,"easeInOutExpo");return false}}});b(".js-scroll-trigger").click(function(){b(".navbar-collapse").collapse("hide")});b("body").scrollspy({target:"#mainNav",offset:54});var a=function(){if(b("#mainNav").offset().top>100){b("#mainNav").addClass("navbar-shrink")}else{b("#mainNav").removeClass("navbar-shrink")}};a();b(window).scroll(a)})(jQuery); +!function(a){"use strict";a('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var e=a(this.hash);if((e=e.length?e:a("[name="+this.hash.slice(1)+"]")).length)return a("html, body").animate({scrollTop:e.offset().top-54},1e3,"easeInOutExpo"),!1}}),a(".js-scroll-trigger").click(function(){a(".navbar-collapse").collapse("hide")}),a("body").scrollspy({target:"#mainNav",offset:54});var e=function(){a("#mainNav").offset().top>100?a("#mainNav").addClass("navbar-shrink"):a("#mainNav").removeClass("navbar-shrink")};e(),a(window).scroll(e)}(jQuery); \ No newline at end of file