Created
July 7, 2017 16:58
-
-
Save simplyniceweb/20f7c0cc73cb0d8119fdf13b2392d7c3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 () { | |
var tordaFunctions = { | |
sayHi: function(name) { | |
console.log('Hi ' + name); | |
}, | |
navFix: function() { | |
return $(document).on("scroll", function () { | |
var $nav = $(".navbar-fixed-top"); | |
$nav.toggleClass('scrolled', $(this).scrollTop() > $nav.height()); | |
tordaFunctions.sayHi('John Mark'); | |
}); | |
} | |
}; | |
tordaFunctions.navFix(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment