From c3710c058e66789a334966bccdc8767531201b48 Mon Sep 17 00:00:00 2001 From: zhanghongqing Date: Wed, 28 Mar 2018 10:22:49 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E9=87=8D=E5=A4=8D=E8=B7=9F?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84=E5=9B=BD=E9=99=85=E5=8C=96=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=202.=E4=BF=AE=E6=94=B9=E6=9C=BA=E6=9E=84=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=9B=B8=E5=85=B3=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/global/scripts/mustache.min.js | 7 +++++++ .../webapp/static/global/scripts/wsize.min.js | 19 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 src/main/webapp/static/global/scripts/mustache.min.js create mode 100644 src/main/webapp/static/global/scripts/wsize.min.js diff --git a/src/main/webapp/static/global/scripts/mustache.min.js b/src/main/webapp/static/global/scripts/mustache.min.js new file mode 100644 index 000000000..f467f35b1 --- /dev/null +++ b/src/main/webapp/static/global/scripts/mustache.min.js @@ -0,0 +1,7 @@ +/*! + * mustache.js - Logic-less {{mustache}} templates with JavaScript + * http://github.com/janl/mustache.js + */ +(function(a,b){if(typeof exports==="object"&&exports){b(exports)}else{var c={};b(c);if(typeof define==="function"&&define.amd){define(c)}else{a.Mustache=c}}}(this,function(a){var f=/\s*/;var m=/\s+/;var k=/\S/;var i=/\s*=/;var o=/\s*\}/;var u=/#|\^|\/|>|\{|&|=|!/;var g=RegExp.prototype.test;function t(A,z){return g.call(A,z)}function h(z){return !t(k,z)}var w=Object.prototype.toString;var l=Array.isArray||function(z){return w.call(z)==="[object Array]"};function b(z){return typeof z==="function"}function e(z){return z.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var d={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function n(z){return String(z).replace(/[&<>"'\/]/g,function(A){return d[A]})}function v(z){this.string=z;this.tail=z;this.pos=0}v.prototype.eos=function(){return this.tail===""};v.prototype.scan=function(B){var A=this.tail.match(B);if(A&&A.index===0){var z=A[0];this.tail=this.tail.substring(z.length);this.pos+=z.length;return z}return""};v.prototype.scanUntil=function(B){var A=this.tail.search(B),z;switch(A){case -1:z=this.tail;this.tail="";break;case 0:z="";break;default:z=this.tail.substring(0,A);this.tail=this.tail.substring(A)}this.pos+=z.length;return z};function s(z,A){this.view=z==null?{}:z;this.parent=A;this._cache={".":this.view}}s.make=function(z){return(z instanceof s)?z:new s(z)};s.prototype.push=function(z){return new s(z,this)};s.prototype.lookup=function(z){var C;if(z in this._cache){C=this._cache[z]}else{var B=this;while(B){if(z.indexOf(".")>0){C=B.view;var D=z.split("."),A=0;while(C!=null&&A":J=B.getPartial(I);if(b(J)){E+=J(z)}break;case"&":J=z.lookup(I);if(J!=null){E+=J}break;case"name":J=z.lookup(I);if(J!=null){E+=a.escape(J)}break;case"text":E+=I;break}}return E}function y(F){var A=[];var E=A;var G=[];var C;for(var B=0,z=F.length;B0?G[G.length-1][4]:A;break;default:E.push(C)}}return A}function c(E){var B=[];var D,A;for(var C=0,z=E.length;CJeeSite 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