File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ $(function(){
77 // change nav bar visibility on scroll
88 function onScroll ( ) {
99 var isNavBarVisible = window . pageYOffset >= showNavBarMinimum ;
10- if ( isNavBarVisible != wasNavBarVisible ) {
10+ if ( isNavBarVisible !== wasNavBarVisible ) {
1111 $navBar . toggleClass ( 'show' ) ;
1212 wasNavBarVisible = isNavBarVisible ;
1313 }
@@ -36,7 +36,7 @@ $(function(){
3636
3737 // Scroll Animations
3838 $ ( 'a[href*=#]:not([href=#])' ) . click ( function ( ) {
39- if ( location . pathname . replace ( / ^ \/ / , '' ) == this . pathname . replace ( / ^ \/ / , '' ) && location . hostname == this . hostname ) {
39+ if ( location . pathname . replace ( / ^ \/ / , '' ) === this . pathname . replace ( / ^ \/ / , '' ) && location . hostname = == this . hostname ) {
4040 var target = $ ( this . hash ) ;
4141 target = target . length ? target : $ ( '[name=' + this . hash . slice ( 1 ) + ']' ) ;
4242 if ( target . length ) {
You can’t perform that action at this time.
0 commit comments