Skip to content

Instantly share code, notes, and snippets.

@zavod008
Created July 18, 2016 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zavod008/6ee1fe80cb490d43a22c1046c278b0c8 to your computer and use it in GitHub Desktop.
Save zavod008/6ee1fe80cb490d43a22c1046c278b0c8 to your computer and use it in GitHub Desktop.
$('.open-block').hide();
$('.open-btn').click(function() {
var findDiv = $(this).next('.open-block');
var findLinia = $(this).closest('.sidebar');
if (findDiv.is(':visible')) {
findDiv.slideUp();
} else {
findLinia.find('.open-block').slideUp();
findDiv.slideDown();
}
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment