Created
March 11, 2010 01:53
-
-
Save zeke/328719 to your computer and use it in GitHub Desktop.
Revisions
-
zeke created this gist
Mar 11, 2010 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ // Before hiding all the inactive togglables, hard-code their height so // the jQuery effect isn't choppy. // See http://stackoverflow.com/questions/1092245/basic-jquery-slideup-and-slidedown-driving-me-mad $(".togglable").each(function(){ $(this).css("height", $(this).height()); }); // Passive way of hiding stuff that should be hidden. // This way it won't be for users with js disabled. $(".inactive").hide();