update main branch #47
File diff suppressed because one or more lines are too long
|
@ -1,12 +1,17 @@
|
||||||
|
|
||||||
$(function(){
|
$(function(){
|
||||||
$("#site-list").on( "click", ".accordion-title", function() {
|
$("#site-list").on( "click", ".accordion-title", function() {
|
||||||
|
var title = this
|
||||||
var content = $(this).closest('.accordion-item')
|
var content = $(this).closest('.accordion-item')
|
||||||
.find('.accordion-content')
|
.find('.accordion-content')
|
||||||
if ($(content).is(':visible')) {
|
if ($(content).is(':visible')) {
|
||||||
$(content).slideUp('fast')
|
$(content).slideUp('fast')
|
||||||
|
$(this).closest('.accordion-item').removeClass('is-active')
|
||||||
|
$(title).attr('aria-expanded', false)
|
||||||
} else {
|
} else {
|
||||||
$(content).slideDown('fast')
|
$(content).slideDown('fast')
|
||||||
|
$(this).closest('.accordion-item').addClass('is-active')
|
||||||
|
$(title).attr('aria-expanded', true)
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue