Skip to content

Instantly share code, notes, and snippets.

@sunilw
Created May 21, 2014 00:28
Show Gist options
  • Save sunilw/c72a751e8c8cea043c3d to your computer and use it in GitHub Desktop.
Save sunilw/c72a751e8c8cea043c3d to your computer and use it in GitHub Desktop.
jQuery(document).ready(function() {
var mobileNavMenu = $("#mobile-nav-menu");
var mobileNavButton = $(".mobile-nav-button") ;
var uberMenu = $("#ubermenu") ;
(function(){
window.larkinApp = {
data : {
mobileNavVisible : 'false',
uberdropVisible : 'false'
}, // ends data
functions : {
toggleNav : function() {
console.debug("got to toggleNav") ;
}, // ends toggleNav
uberMenuShowHide : function(){
console.debug("got to showhide");
console.debug("uberMenuShowHide is done") ;
} // ends findDropDownTrigger
}, //ends functions
init : {
tests : function() {
console.debug("got to test") ;
}, // ends tests
uberMenu: function() {
console.debug("got to uberMenu") ;
var trigger = $(".header-nav .page-item-4") ;
} // ends uberMenu
} // ends init
};
window.larkinApp.init.tests() ;
window.larkinApp.init.uberMenu() ;
})(); // ends our iife
mobileNavButton.on("click", function() {
larkinApp.functions.toggleNav();
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment