Created
June 6, 2014 01:32
-
-
Save joetower/0fddfe4ddb8ee52ad2a6 to your computer and use it in GitHub Desktop.
jQuery n00bness
This file contains 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
// Small handheld collpased navigation | |
(function ($) { | |
'use strict'; | |
$(document).ready(function () { | |
var pullNav = $('#pull-nav'); | |
var menu = $('.secondary-links'); | |
var pullSideMenu = $('#pull-side-one'); | |
var menuSidebar = $('#sidebar-left'); | |
var pullSideResources = $('#pull-side-two'); | |
var menuSidebarTwo = $('#sidebar-left2'); | |
var pullSearch = $('#pull-search'); | |
var search = $('#header-region'); | |
$(pullNav).click(function () { | |
$(this).toggleClass("active"); | |
$(menu).toggle(); | |
return false; | |
}); | |
$(pullSideMenu).click(function () { | |
$(this).toggleClass("active"); | |
$(menuSidebar).toggle(); | |
return false; | |
}); | |
$(pullSideResources).click(function () { | |
$(this).toggleClass("active"); | |
$(menuSidebarTwo).toggle(); | |
return false; | |
}); | |
$(pullSearch).click(function () { | |
$(this).toggleClass("active"); | |
$(search).toggle(); | |
return false; | |
}); | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment