]>
git.saurik.com Git - wxWidgets.git/blob - docs/doxygen/wxwidgets.js
1 /*****************************************************************************
3 ** Purpose: The wxWidgets documentation javascript
4 ** Author: Doxygen team
6 ** Licence: wxWindows licence
7 *****************************************************************************/
10 function getCookie(c_name
)
12 if (document
.cookie
.length
>0)
14 c_start
=document
.cookie
.indexOf(c_name
+ "=");
17 c_start
=c_start
+ c_name
.length
+1;
18 c_end
=document
.cookie
.indexOf(";",c_start
);
19 if (c_end
==-1) c_end
=document
.cookie
.length
;
20 return unescape(document
.cookie
.substring(c_start
,c_end
));
26 function setCookie(c_name
,value
,expiredays
)
28 var exdate
=new Date();
29 exdate
.setDate(exdate
.getDate()+expiredays
);
30 document
.cookie
=c_name
+ '=' +escape(value
)+
31 ((expiredays
==null) ? '' : ';expires='+exdate
.toGMTString());
36 var display
= getCookie('sectionDiv.style.display');
37 if ( display
== '' || display
== 'block' ) {
38 $('div.dynheader').each(function() { toggleVisibility(this); });
39 setCookie('sectionDiv.style.display', 'block');
42 $('div.dynheader').click(function() {
43 var display
= $('#' + $(this).attr('id') + '-content').css('display');
44 setCookie('sectionDiv.style.display', display
);