Skip to content

Instantly share code, notes, and snippets.

@aaronmcadam
Created June 17, 2010 22:44
Show Gist options
  • Save aaronmcadam/442905 to your computer and use it in GitHub Desktop.
Save aaronmcadam/442905 to your computer and use it in GitHub Desktop.
smart_toggle not used on NM
$('.sound a').toggle(function(e) {
$("#slider-horizontal").css('margin', '10px').slideDown('fast');
// Deactivate any actively toggled elements first:
// $(this).closest("div.podcast").each(ACTIVATE).siblings("div.podcast").each(DEACTIVATE)
$('.slider-vertical').eq(index).each(function(){ $(this).css('margin', '10px').slideDown('fast'); })
.siblings('.slider-vertical').each(function(){ $(this).slideUp('fast'); });
e.preventDefault();
}, function(e) {
$("#slider-horizontal").slideUp('fast');
e.preventDefault();
});
@aaronmcadam
Copy link
Author

toggle idea ( not used on the NM podcast player)

@aaronmcadam
Copy link
Author

This needs improving so that it works for the first click on an element also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment