projects
/
m6w6
/
ext-propro
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
interruption
[m6w6/ext-propro]
/
html
/
resize.js
diff --git
a/html/resize.js
b/html/resize.js
index 2bb9169002841a4d6d5e22b70dac9124f1385f60..a80decef3f865269b74a816079af40b0b0ba1f7f 100644
(file)
--- a/
html/resize.js
+++ b/
html/resize.js
@@
-1,17
+1,17
@@
-var cookie_namespace = 'doxygen';
+var cookie_namespace = 'doxygen';
var sidenav,navtree,content,header;
var sidenav,navtree,content,header;
-function readCookie(cookie)
+function readCookie(cookie)
{
var myCookie = cookie_namespace+"_"+cookie+"=";
{
var myCookie = cookie_namespace+"_"+cookie+"=";
- if (document.cookie)
+ if (document.cookie)
{
var index = document.cookie.indexOf(myCookie);
{
var index = document.cookie.indexOf(myCookie);
- if (index != -1)
+ if (index != -1)
{
var valStart = index + myCookie.length;
var valEnd = document.cookie.indexOf(";", valStart);
{
var valStart = index + myCookie.length;
var valEnd = document.cookie.indexOf(";", valStart);
- if (valEnd == -1)
+ if (valEnd == -1)
{
valEnd = document.cookie.length;
}
{
valEnd = document.cookie.length;
}
@@
-22,10
+22,10
@@
function readCookie(cookie)
return 0;
}
return 0;
}
-function writeCookie(cookie, val, expiration)
+function writeCookie(cookie, val, expiration)
{
if (val==undefined) return;
{
if (val==undefined) return;
- if (expiration == null)
+ if (expiration == null)
{
var date = new Date();
date.setTime(date.getTime()+(10*365*24*60*60*1000)); // default expiration is one week
{
var date = new Date();
date.setTime(date.getTime()+(10*365*24*60*60*1000)); // default expiration is one week
@@
-33,12
+33,12
@@
function writeCookie(cookie, val, expiration)
}
document.cookie = cookie_namespace + "_" + cookie + "=" + val + "; expires=" + expiration+"; path=/";
}
}
document.cookie = cookie_namespace + "_" + cookie + "=" + val + "; expires=" + expiration+"; path=/";
}
-
-function resizeWidth()
+
+function resizeWidth()
{
var windowWidth = $(window).width() + "px";
var sidenavWidth = $(sidenav).outerWidth();
{
var windowWidth = $(window).width() + "px";
var sidenavWidth = $(sidenav).outerWidth();
- content.css({marginLeft:parseInt(sidenavWidth)+"px"});
+ content.css({marginLeft:parseInt(sidenavWidth)+"px"});
writeCookie('width',sidenavWidth, null);
}
writeCookie('width',sidenavWidth, null);
}
@@
-49,7
+49,7
@@
function restoreWidth(navWidth)
sidenav.css({width:navWidth + "px"});
}
sidenav.css({width:navWidth + "px"});
}
-function resizeHeight()
+function resizeHeight()
{
var headerHeight = header.outerHeight();
var footerHeight = footer.outerHeight();
{
var headerHeight = header.outerHeight();
var footerHeight = footer.outerHeight();
@@
-89,3
+89,5
@@
function initResizable()
}
});
}
}
});
}
+
+