]> git.saurik.com Git - wxWidgets.git/blame - docs/doxygen/wxwidgets.js
Don't lie about wxImageList in XRC format spec.
[wxWidgets.git] / docs / doxygen / wxwidgets.js
CommitLineData
b0f73b67
VZ
1/*****************************************************************************
2 ** Name: wxwidgets.js
526954c5
VZ
3 ** Purpose: The wxWidgets documentation javascript
4 ** Author: Doxygen team
526954c5
VZ
5 ** Licence: wxWindows licence
6 *****************************************************************************/
7
8// from w3schools
b0f73b67
VZ
9function getCookie(c_name)
10{
11 if (document.cookie.length>0)
12 {
13 c_start=document.cookie.indexOf(c_name + "=");
14 if (c_start!=-1)
15 {
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));
20 }
21 }
22 return "";
23}
24// from w3schools
25function setCookie(c_name,value,expiredays)
26{
27 var exdate=new Date();
28 exdate.setDate(exdate.getDate()+expiredays);
29 document.cookie=c_name+ '=' +escape(value)+
30 ((expiredays==null) ? '' : ';expires='+exdate.toGMTString());
31}
32
20004800 33$(function() {
b0f73b67 34
20004800
BP
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');
39 }
b0f73b67 40
20004800
BP
41 $('div.dynheader').click(function() {
42 var display = $('#' + $(this).attr('id') + '-content').css('display');
43 setCookie('sectionDiv.style.display', display);
44 });
b0f73b67 45
20004800 46});