diff --git a/gulpfile.js b/gulpfile.js index e25aa56..5939935 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -59,7 +59,7 @@ gulp.task('copy', function() { gulp.src(['node_modules/jquery/dist/jquery.js', 'node_modules/jquery/dist/jquery.min.js']) .pipe(gulp.dest('lib/jquery')) - gulp.src(['node_modules/tether/dist/js/tether.js', 'node_modules/tether/dist/js/tether.min.js']) + gulp.src(['node_modules/tether/dist/js/*.js']) .pipe(gulp.dest('lib/tether')) gulp.src([ diff --git a/js/agency.js b/js/agency.js index fb95e4d..c1b8019 100644 --- a/js/agency.js +++ b/js/agency.js @@ -19,8 +19,8 @@ }); // Closes the Responsive Menu on Menu Item Click - $('#navbarResponsive>ul>li>a').click(function() { - $('#navbarResponsive').collapse('hide'); + $('.navbar-collapse>ul>li>a').click(function() { + $('.navbar-collapse').collapse('hide'); }); // jQuery to collapse the navbar on scroll diff --git a/js/agency.min.js b/js/agency.min.js index 6c0edfe..bd6328b 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/blob/gh-pages/LICENSE) */ -!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:54}),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); \ No newline at end of file +!function(a){"use strict";a("a.page-scroll").bind("click",function(n){var o=a(this);a("html, body").stop().animate({scrollTop:a(o.attr("href")).offset().top-54},1250,"easeInOutExpo"),n.preventDefault()}),a("body").scrollspy({target:"#mainNav",offset:54}),a(".navbar-collapse>ul>li>a").click(function(){a(".navbar-collapse").collapse("hide")}),a(window).scroll(function(){a("#mainNav").offset().top>100?a("#mainNav").addClass("navbar-shrink"):a("#mainNav").removeClass("navbar-shrink")})}(jQuery); \ No newline at end of file diff --git a/package.json b/package.json index 2ca45e7..15226c5 100644 --- a/package.json +++ b/package.json @@ -19,8 +19,8 @@ "gulp-rename": "^1.2.2", "gulp-sass": "^2.3.2", "gulp-uglify": "^1.5.4", - "jquery": "^3.0.0", - "tether": "^1.3.8" + "jquery": "^3.1.1", + "tether": "^1.4.0" }, "repository": { "type": "git",