Created
May 21, 2014 19:55
-
-
Save mrjasonweaver/461df9be88be23baacc5 to your computer and use it in GitHub Desktop.
Show/Hide pattern
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
Site = {}; | |
// show/hide pattern | |
Site.showHide = function(element, container) { | |
$(element).toggleClass("active"); | |
$(container).toggleClass("show"); | |
}; | |
$(document).ready(function() { | |
Site.showHide('#button', '#container'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment