(function ($, Drupal) {
//do something
Drupal.behaviors.accordion = {
attach: function(context, settings) {
$(context).once().each(function() {
$(this).foundation({
accordion: {
// specify the class used for accordion panels
content_class: 'content',
// specify the class used for active (or open) accordion panels
active_class: 'active',
// allow multiple accordion panels to be active at the same time
multi_expand: true,
// allow accordion panels to be closed by clicking on their headers
// setting to false only closes accordion panels when another is opened
toggleable: true
},
orbit: {
slide_number: false,
container_class: 'orbit-container',
slides_container_class: 'orbit-slides-container', // Class name given to the slide container
slide_selector: 'div.media', // Default is '*' which selects all children under the container
bullets: false, // Does the slider have bullets visible?
timer: true, // Does the slider have a timer active? Setting to false disables the timer.
variable_height: false, // Does the slider have variable height content?
animation: 'fade'
}
});
});
}
}
})(jQuery, Drupal);