/*
Smooth Scroll
Version: 1.2
Developer: Jonathan Chute
Year: 2017
*/
!function(a){a.fn.smoothScroll=function(b){var c=a(this);if(void 0!==c[0]){var e,d=a.extend({scrollTo:"",top:0,mobile:""},b);c.click(function(){if(""===d.scrollTo){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var b=a(this.hash);b.length?(b=b.length?b:a("[name="+this.hash.slice(1)+"]"),e=b.offset().top-parseInt(a("html").css("margin-top")),e-=""!==d.mobile&&a("body").width()<780?d.mobile:d.top):e=0}}else e=d.scrollTo;return a("html,body").animate({scrollTop:e},500),!1})}}}(jQuery);

@@ -21,17 +21,17 @@
 sion: 1.
-2
+3
 %0ADevelop
@@ -77,12 +77,12 @@
 ion(
-a)%7Ba
+t)%7Bt
 .fn.
@@ -107,18 +107,206 @@
 ion(
-b)%7Bvar c=a
+n)%7Bfunction o(n)%7Breturn n.length?n.offset().top-parseInt(t(%22html%22).css(%22margin-top%22))-e.top:0%7Dfunction a(n)%7Bvar o=t(window).scrollTop(),a=n%3Eo?n-o:o-n;t(%22html, body%22).animate(%7BscrollTop:n%7D,a)%7Dvar i=t
 (thi
@@ -320,17 +320,17 @@
 oid 0!==
-c
+i
 %5B0%5D)%7Bvar
@@ -335,12 +335,10 @@
 ar e
-,d=a
+=t
 .ext
@@ -346,41 +346,64 @@
 nd(%7B
-scrollTo:%22%22,top:0,mobile:%22%22%7D,b);c
+distance:0,top:0,scrollExternal:!1%7D,n),r=e.distance;if(i
 .cli
@@ -418,33 +418,100 @@
 ion(
+n
 )%7Bif(
-%22%22===d.scrollTo)%7Bif(
+n.preventDefault(),!e.distance)%7Bt(this).attr(%22href%22);if(%22#%22==t(this).attr(%22href%22)%5B0%5D&&
 loca
@@ -618,268 +618,118 @@
 var 
-b=a(this.hash);b.length?(b=b.length?b:a(%22%5Bname=%22+this.hash.slice(1)+%22%5D%22),e=b.offset().top-parseInt(a(%22html%22).css(%22margin-top%22)),e-=%22%22!==d.mobile&&a(%22body%22).width()%3C780?d.mobile:d.top):e=0%7D%7Delse e=d.scrollTo;return a(%22html,body%22).animate(%7BscrollTop:e%7D,500),!1%7D)
+i=t(this.hash);r=o(i)%7D%7Da(r)%7D),e.scrollExternal&&window.location.hash)%7Bvar l=t(window.location.hash);a(r=o(l))%7D
 %7D%7D%7D(

Update smoothscroll-min.js