Created
April 25, 2012 22:24
-
-
Save jgable/2493978 to your computer and use it in GitHub Desktop.
Minimum JS - Scoping 1
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 highlightMenu() { | |
// Find my the current menu item and highlight it... | |
}; | |
function loadWizzyMathinger() { | |
// Load the almighty Wizzy Mathinger | |
}; | |
function handleItemClick(evt) { | |
}; | |
// On Document Ready | |
$(function() { | |
highlightMenu(); | |
loadWizzyMathinger(); | |
}); | |
// Maybe later in the page, you do something like this | |
<a href="#" onclick"handleItemClick">Some Item</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment