poulpe/shared/static/js/global.js
2018-08-26 21:18:51 +02:00

19 lines
423 B
JavaScript

jQuery(document).ready(function() {
/* VARIABLE */
var coll = $('.collapsible');
var i;
/* EVENTS */
coll.click(function() {
$(this).toggleClass('active');
$content = $(this).next();
$content.slideToggle(200, function () {});
});
/* INIT */
coll.each(function() {
if ($(this).is('.active')) {
$content = $(this).next();
$content.slideToggle(10, function () {});
}
});
});