blob: 0d01be180852bc17a1fa2758ecbbfddb642016d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
$(function(){
/* hide blocks */
$('div.d, div.f').click(function (e) {
if (e.target !== this) return;
$(this).toggleClass('hide');
e.preventDefault();
e.stopPropagation();
});
/* collapse parameters */
$('span.params, span.return').click(function (e) {
if (e.target !== this) return;
$(this).toggleClass('short');
e.preventDefault();
e.stopPropagation();
});
/* hide internal funcs */
$('#internal').change(function(){
$('div.i').toggle();
});
/* hide functions */
$('span.name').click(function(e){
if (e.target !== this) return;
var $fn = $(this);
var name = $(this).text();
$("span.name:contains('"+name+"')").closest('div.f').toggleClass('hide');
e.preventDefault();
e.stopPropagation();
});
/* mark important */
$('span.time').click(function(e){
if (e.target !== this) return;
$(this).closest('div.f').toggleClass('mark');
e.preventDefault();
e.stopPropagation();
});
/* hide internal funcs */
$('#marked').change(function(){
$('div.f').toggle();
$('div.f.mark').show();
});
});
|