Sha256: acf71f2807c67ea741e6a55e9981af5ff948bd8fc39b2a16745dba0f738a48ca
Contents?: true
Size: 695 Bytes
Versions: 8
Compression:
Stored size: 695 Bytes
Contents
$(document).ready(function () { $('.accordion-tabs-minimal').each(function(index) { $(this).children('li').first().children('a').addClass('is-active').next().addClass('is-open').show(); }); $('.accordion-tabs-minimal').on('click', 'li > a', function(event) { if (!$(this).hasClass('is-active')) { event.preventDefault(); var accordionTabs = $(this).closest('.accordion-tabs-minimal') accordionTabs.find('.is-open').removeClass('is-open').hide(); $(this).next().toggleClass('is-open').toggle(); accordionTabs.find('.is-active').removeClass('is-active'); $(this).addClass('is-active'); } else { event.preventDefault(); } }); });
Version data entries
8 entries across 8 versions & 1 rubygems