Skip to content

Releases: awps/Accordion.JS

Version 2.1.1

11 Oct 13:05
Compare
Choose a tag to compare

Version 2.x is a major release of version 1.x.
v2.1.1 is a stable release.

Version 1.3

04 Sep 09:50
Compare
Choose a tag to compare

Added support for HTML5 data attributes.

Here is the equivalent for each option:

  • closeAble --> data-close-able
  • animation --> data-animation
  • showIcon --> data-show-icon
  • closeOther --> data-close-other
  • slideSpeed --> data-slide-speed
  • activeIndex --> data-active-index

Version 1.2

21 Jul 15:19
Compare
Choose a tag to compare
  • Added support for nested accordions.

Version 1.1

06 Mar 20:09
Compare
Choose a tag to compare

New options:

closeOther: true, //Allow multiple sections to be open(boolean)
activeIndex: false //Active section. The section index(starting from 1)(integer or false)

New files:
css/smk-accordion.less - Less, CSS pre-processor.
js/min/smk-accordion.min.js - plugin minified file

New features:

  • Multiple sections open.
  • Init multiple accordions with the same class.
  • Added activeSection option. No need anymore for .acc_active class.
  • Minimum markup. No need anymore for .accordion_in, .acc_head, .acc_content. Just make sure to keep the markup clear like this:
<div class="accordion_selector">
    <!-- Section 1 -->
    <div>
        <div> Section 1 </div>
        <div> <!--TEXT--> </div>
    </div>
    <!-- Section 2 -->
    <div>
        <div> Section 2 </div>
        <div> <!--TEXT--> </div>
    </div>
</div>

Pull Request: #1

Version 1.0

26 Nov 19:23
Compare
Choose a tag to compare
v1.0

First commit