448d783c77cb6c29b2ca146e8a278dac8a2e0ad7.svn-base 1.23 KB
/*!
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 * 
 * 主框架窗口大小调整
 * @author ThinkGem
 * @version 2013-11-09
 */
$("#left").width(leftWidth);$("#openClose").click(function(){if($(this).hasClass("close")){$(this).removeClass("close");$(this).addClass("open");$("#left").animate({width:0,opacity:"hide"});$("#right").animate({width:$("#content").width()-$("#openClose").width()-5},function(){if(typeof openCloseClickCallBack=="function"){openCloseClickCallBack(true)}wSize()})}else{$(this).addClass("close");$(this).removeClass("open");$("#left").animate({width:leftWidth,opacity:"show"});$("#right").animate({width:$("#content").width()-$("#openClose").width()-leftWidth-9},function(){if(typeof openCloseClickCallBack=="function"){openCloseClickCallBack(true)}wSize()})}});if(!Array.prototype.map){Array.prototype.map=function(e,d){var a=[],b=0;for(var c=0,f=this.length;c<f;c++){if(c in this){a[b++]=e.call(d,this[c],c,this)}}return a}}var getWindowSize=function(){return["Height","Width"].map(function(a){return window["inner"+a]||document.compatMode==="CSS1Compat"&&document.documentElement["client"+a]||document.body["client"+a]})};$(window).resize(function(){wSize()});wSize();