Created
July 21, 2014 19:51
-
-
Save lizkaraffa/9a3d526fd0d668f29669 to your computer and use it in GitHub Desktop.
Overlay functionality
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
/** | |
* overlay.js | |
* | |
* Handles toggling the whole screen overlay when nav button is clicked. | |
*/ | |
(function(){ | |
$("#slider-btn").toggle(function() { | |
$('#page-overlay').css('display','block'); | |
$('.menu-main-menu-container').css('display','block'); | |
}, function(){ | |
$('#page-overlay').css('display','none'); | |
$('.menu-main-menu-container').css('display','none'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment