Improve wxWindow best size documentation, mention DoGetBestClientSize().
[wxWidgets.git] / docs / doxygen / wxwidgets.js
1 /*****************************************************************************
2 ** Name: wxwidgets.js
3 ** Purpose: The wxWidgets documentation javascript
4 ** Author: Doxygen team
5 ** RCS-ID: $Id$
6 ** Licence: wxWindows licence
7 *****************************************************************************/
8
9 // from w3schools
10 function getCookie(c_name)
11 {
12 if (document.cookie.length>0)
13 {
14 c_start=document.cookie.indexOf(c_name + "=");
15 if (c_start!=-1)
16 {
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));
21 }
22 }
23 return "";
24 }
25 // from w3schools
26 function setCookie(c_name,value,expiredays)
27 {
28 var exdate=new Date();
29 exdate.setDate(exdate.getDate()+expiredays);
30 document.cookie=c_name+ '=' +escape(value)+
31 ((expiredays==null) ? '' : ';expires='+exdate.toGMTString());
32 }
33
34 $(function() {
35
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');
40 }
41
42 $('div.dynheader').click(function() {
43 var display = $('#' + $(this).attr('id') + '-content').css('display');
44 setCookie('sectionDiv.style.display', display);
45 });
46
47 list_of_members_link = $('a[href$="-members.html"]:first');
48 if(list_of_members_link.length) {
49 summary_div = $('div.header div.summary:first');
50 if(summary_div.length) {
51 summary_div.append(' | ');
52 summary_div.append(list_of_members_link.clone().text('List of All Members'));
53 }
54 }
55
56 });