From 1a7fa60f6cb2ee26843ca19e37bb4ff44104ad55 Mon Sep 17 00:00:00 2001 From: Bulletin Date: Thu, 29 Dec 2016 16:42:32 -0500 Subject: Added existing progress --- js/frontpage.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 js/frontpage.js (limited to 'js/frontpage.js') diff --git a/js/frontpage.js b/js/frontpage.js new file mode 100644 index 0000000..e809225 --- /dev/null +++ b/js/frontpage.js @@ -0,0 +1,11 @@ +$(function() { + $('a[href^="#"]').on('click', function(e) { + var target = $(this.getAttribute('href')); + if (target.length) { + e.preventDefault(); + $('html, body').stop().animate({ + scrollTop: target.offset().top + }, 500); + } + }); +}); -- cgit v1.2.3