Skip to content

Instantly share code, notes, and snippets.

@steveosoule
Created October 18, 2012 00:17
Show Gist options
  • Save steveosoule/3909158 to your computer and use it in GitHub Desktop.
Save steveosoule/3909158 to your computer and use it in GitHub Desktop.
pageFunctions
var pageFunctions = {
init: function() {
var pageScreen = document.body.id;
if (pageFunctions[pageScreen]) {
$(document).ready(function() {
pageFunctions[pageScreen]();
});
}
},
HOME: function() {
// Home page scripts
}
};
pageFunctions.init();​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment