Skip to content

Instantly share code, notes, and snippets.

@jgable
Created April 25, 2012 22:24
Show Gist options
  • Save jgable/2493978 to your computer and use it in GitHub Desktop.
Save jgable/2493978 to your computer and use it in GitHub Desktop.
Minimum JS - Scoping 1
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