mirror of
https://github.com/torproject/webwml.git
synced 2024-12-15 22:37:55 +00:00
25 lines
726 B
JavaScript
25 lines
726 B
JavaScript
$(document).ready(function () {
|
|
$('div.accordionButton').click(function () {
|
|
if ($(this).next().is(':hidden') == true) {
|
|
$(this).addClass('on');
|
|
$(this).removeClass('off');
|
|
$(this).next().slideDown('normal');
|
|
} else {
|
|
$(this).removeClass('on');
|
|
$(this).addClass('off');
|
|
$(this).next().slideUp('normal');
|
|
}
|
|
});
|
|
$('.switch').click(function()
|
|
|
|
{
|
|
$('.accordionContent').slideDown('normal');
|
|
$('.accordionButton').addClass('on');
|
|
$('.accordionButton').removeClass('off');
|
|
}
|
|
);
|
|
$('.accordionButton').addClass('off');
|
|
$('div.accordionContent').hide();
|
|
$(".open").trigger('click');
|
|
});
|