This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-ntc/src/main/webapp/static/global/scripts/wsize.min.js
zhanghongqing c3710c058e 1.修改重复跟错误的国际化配置
2.修改机构管理相关页面
2018-03-28 10:22:49 +08:00

19 lines
1.3 KiB
JavaScript

/*!
* 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();