git.schokokeks.org
Repositories
Help
Report an Issue
tor-webwml.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
c18f0dd52
Branches
Tags
bridges
docs-debian
jobs
master
press-clips
tor-webwml.git
trunk
js
jquery.accordion.min.js
Added 19 FAQ entries
Matt Pagan
commited
c18f0dd52
at 2013-08-26 04:06:05
jquery.accordion.min.js
Blame
History
Raw
$(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'); });