mirror of
https://github.com/Mibew/mibew.git
synced 2025-04-04 07:27:06 +03:00
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@623 c66351dc-e62f-0410-b875-e3a5c0b9693f
11 lines
421 B
JavaScript
11 lines
421 B
JavaScript
window.attachEvent('onload', mkwidth);
|
|
window.attachEvent('onresize', mkwidth);
|
|
|
|
function mkwidth(){
|
|
if(document.getElementById("wrap700")) {
|
|
document.getElementById("wrap700").style.width = document.documentElement.clientWidth < 750 ? "750px" : "100%";
|
|
}
|
|
if(document.getElementById("wrap400")) {
|
|
document.getElementById("wrap400").style.width = document.documentElement.clientWidth < 450 ? "450px" : "100%";
|
|
}
|
|
}; |