Sha256: f3c46911bb5d8ee2bb5d9969533f151d0754666af588f0cf70566ab3fde3699e
Contents?: true
Size: 620 Bytes
Versions: 55
Compression:
Stored size: 620 Bytes
Contents
$(document).ready(function() { $.fn.toggleDetails = function() { var toggle = function() { $('.details').slideUp(); $(this).parent().find('.details:hidden').slideDown(); }; $(this).each(function() { $(this).on('click', toggle); }); }; $('.toggle-details').toggleDetails(); $.fn.toggleBlock = function() { var toggle = function() { var $this = $(this); $('.info').slideUp(); $('#' + $this.data('target') + ':hidden').slideDown(); }; $(this).each(function() { $(this).on('click', toggle); }); }; $('.block .name').toggleBlock(); });
Version data entries
55 entries across 55 versions & 1 rubygems