Created
October 31, 2018 14:53
-
-
Save tonysaffo/7d7f0b0977a208f45701b8095404f1d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setEvListeners(navTitles){ | |
for (var i = 0; i < navTitles.length; i++){ | |
navTitles.eq(i).click(setTo(i)); | |
} | |
} | |
function setTo(i){ | |
return function(){ | |
scrollTo($('main.desktop-main .simple-title').eq(i)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment