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