dokuwiki-hidden-plugin – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /** |
2 | * script.js for Plugin hidden |
||
3 | * |
||
4 | * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) |
||
5 | * @author Guillaume Turri <guillaume.turri@gmail.com> |
||
6 | * |
||
7 | */ |
||
8 | jQuery(function(){ |
||
9 | jQuery("div.hiddenSinceBeginning").parent().addClass('hiddenHidden'); |
||
10 | jQuery('div.hiddenActive>div.hiddenHead').on('click', function(){ |
||
11 | jQuery(this).parent().toggleClass('hiddenHidden'); |
||
12 | }); |
||
13 | jQuery(".hiddenSwitch").on('click', function() { |
||
14 | var weShallHide = (jQuery('div.hiddenGlobal.hiddenHidden').length == 0); |
||
15 | if(weShallHide) { |
||
16 | jQuery('.hiddenActive').addClass('hiddenHidden'); |
||
17 | } else { |
||
18 | jQuery('.hiddenActive').removeClass('hiddenHidden'); |
||
19 | } |
||
20 | }); |
||
21 | }); |