⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ibmcommon.js

📁 java后台生成JSON数据和EXT互传数据
💻 JS
📖 第 1 页 / 共 5 页
字号:
opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:{slow:600,fast:200}[opt.duration])||400;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false){jQuery(this).dequeue()}if(jQuery.isFunction(opt.old)){opt.old.apply(this)}};return opt},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig){options.orig={}}}});jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.apply(this.elem,[this.now,this])}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width"){this.elem.style.display="block"}},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null){return this.elem[this.prop]}var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0},custom:function(from,to,unit){this.startTime=(new Date()).getTime();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd)}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice(i--,1)}}if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null}},13)}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height"){this.elem.style[this.prop]="1px"}jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(gotoEnd){var t=(new Date()).getTime();if(gotoEnd||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false}}if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){this.elem.style.display="none"}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jQuery.attr(this.elem.style,p,this.options.orig[p])}}}if(done&&jQuery.isFunction(this.options.complete)){this.options.complete.apply(this.elem)}return false}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};jQuery.fx.step={scrollLeft:function(fx){fx.elem.scrollLeft=fx.now},scrollTop:function(fx){fx.elem.scrollTop=fx.now},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now)},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit}};jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem){with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),fixed=jQuery.css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop)}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2){border(offsetParent)}if(!fixed&&jQuery.css(offsetParent,"position")=="fixed"){fixed=true}offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(jQuery.css(parent,"display"))){add(-parent.scrollLeft,-parent.scrollTop)}if(mozilla&&jQuery.css(parent,"overflow")!="visible"){border(parent)}parent=parent.parentNode}if((safari2&&(fixed||jQuery.css(offsetChild,"position")=="absolute"))||(mozilla&&jQuery.css(offsetChild,"position")!="absolute")){add(-doc.body.offsetLeft,-doc.body.offsetTop)}if(fixed){add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop))}}results={top:top,left:left}}}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true))}function add(l,t){left+=parseInt(l)||0;top+=parseInt(t)||0}return results}})();$j=jQuery.noConflict();if(typeof ibmCommon!="object"||ibmCommon==null){ibmCommon={}}if(typeof ibmCommon.meta!="object"||ibmCommon.meta==null){ibmCommon.meta={}}ibmCommon.meta.isLoaded=false;ibmCommon.meta.init=function(){var D=jQuery("head > meta");for(var E=0,C=D.length;E<C;E++){var A=D.get(E);var B=A.httpEquiv||A.name;B=B.toLowerCase().replace(/[^\w]/g,"_");ibmCommon.meta[B]=jQuery(A).attr("content")}this.wwCase="";this.cc="";this.lc="";if(!!this.ibm_country){this.cc=this.ibm_country.toLowerCase();if(this.cc.indexOf(",")>-1){this.cc=this.cc.substring(0,this.cc.indexOf(","))}if(this.cc=="gb"){this.cc="uk"}if(this.cc=="zz"){this.cc="us";this.wwCase="Y"}}if(!!this.dc_language){this.lc=this.dc_language.substring(0,2).toLowerCase()}this.cpi=this.cc+this.lc;if(this.ibm_pageattributes==null){this.ibm_pageattributes=""}this.encoding="utf8";this.encodingRaw="UTF-8";if(this.content_type!=null){this.encodingRaw=this.content_type.substring(this.content_type.indexOf("=")+1);this.encoding=this.encodingRaw.replace("-","").replace("_","").toLowerCase()}ibmCommon.meta.isLoaded=true};if(typeof ibmCommon.info!="object"||ibmCommon.info==null){ibmCommon.info={}}ibmCommon.info.isLoaded=false;ibmCommon.info.init=function(){this.isLenovo=this.v11=this.v14=this.v15=this.v16=false;this.lenovoVersion="";jQuery('link[@rel^="style"]').each(function(){if(this.href.indexOf("//www.lenovo.com/common/v14/")!=-1){ibmCommon.info.lenovoversion="lenovo-think-v14"}else{if(this.href.indexOf("//www.lenovo.com/common/v15/")!=-1){ibmCommon.info.lenovoversion="lenovo-v15"}else{if(this.href.indexOf("//www.lenovo.com/common/v14/")!=-1){ibmCommon.info.lenovoversion="lenovo-v14"}else{if(this.href.indexOf("//www.ibm.com/common/v16/")!=-1){ibmCommon.info.v16=true}else{if(this.href.indexOf("//www.ibm.com/common/v15/")!=-1){ibmCommon.info.v15=true}else{if(this.href.indexOf("//www.ibm.com/common/v14/")!=-1){ibmCommon.info.v14=true}else{if(this.href.indexOf("//www.ibm.com/data/css/v11/")!=-1){ibmCommon.info.v11=true}}}}}}}ibmCommon.info.isLenovo=ibmCommon.info.lenovoVersion!=""});var B="msie",F=navigator.userAgent.toLowerCase(),D=0;var C=F.indexOf(B);if(F.indexOf("opera")==-1&&C!=-1){this.isIE=true;D=parseFloat(F.substring(C+B.length).replace(/^[^0-9]+/,""))}else{this.isIE=false}this.ieVersion=isNaN(D)?0:D;var G=[];this.isGecko=F.indexOf("gecko")!=-1&&F.indexOf("khtml")==-1;this.geckoVersion=0;if(this.isGecko){G=F.split("rv:");if(G.length>1){D=parseFloat(G[1])}this.geckoVersion=isNaN(D)?0:D}var H="opera";var E=F.indexOf(H);if(E==-1){this.isOldOpera=false}else{var A=parseFloat(F.substring(E+H.length));if(A<9){this.isOldOpera=true}else{this.isOldOpera=false}}this.isLinux=(navigator.userAgent.indexOf("Linux")>-1);this.isDOM=(!!document.createElement&&!!document.createTextNode&&!!document.getElementById&&!!document.getElementsByTagName);ibmCommon.isDOM=ibmCommon.info.isDOM;ibmCommon.info.isLoaded=true};if(typeof ibmCommon.cookie!="object"||ibmCommon.cookie==null){ibmCommon.cookie={}}ibmCommon.cookie.set=function(B,D,A,F,C,E){var G=null;if(A){if(A.toUTCString){G=A}else{if(typeof (A)=="number"){G=new Date();G.setTime(G.getTime()+1000*parseInt(A))}}}document.cookie=B+"="+encodeURIComponent(D)+((G)?"; expires="+G.toUTCString():"")+((F)?"; path="+F:"")+((C)?"; domain="+C:"")+((E)?"; secure":"")};ibmCommon.cookie.get=function(B){var D=B+"=";var C=document.cookie.indexOf(D);if(C==-1){return null}else{if(C>0){C=document.cookie.indexOf("; "+D);if(C==-1){return null}else{C+=2}}}var A=document.cookie.indexOf(";",C);if(A==-1){A=document.cookie.length}return decodeURIComponent(document.cookie.substring(C+D.length,A))};ibmCommon.cookie.remove=function(A,D,C){var B=ibmCommon.cookie.get(A);if(B!=null){document.cookie=A+"="+((D)?"; path="+D:"")+((C)?"; domain="+C:"")+"; expires="+new Date(0).toUTCString()}return B};ibmCommon.cookie.allowed=function(A,F,D,E){var B="allowsCookies";var C=Math.random();ibmCommon.cookie.set(B,C,((A)?A:""),((F)?F:""),((D)?D:""),((E)?E:""));if(ibmCommon.cookie.get(B)==C){ibmCommon.cookie.remove(B,F,D);return true}else{return false}};ibmCommon.cookie.supported=function(A){return ibmCommon.cookie.allowed(0,((A)?A:""))};if(typeof ibmCommon.queue!="object"||ibmCommon.queue==null){ibmCommon.queue={}}ibmCommon.queue._queue=[];ibmCommon.queue._timer=null;ibmCommon.queue._count=0;ibmCommon.queue._lock=false;ibmCommon.queue.push=function(B,A){ibmCommon.queue._count++;ibmCommon.queue._queue.push([ibmCommon.queue._count,B,A]);ibmCommon.queue._work();return ibmCommon.queue._count};ibmCommon.queue.unshift=function(B,A){ibmCommon.queue._count++;ibmCommon.queue._queue.unshift([ibmCommon.queue._count,B,A]);ibmCommon.queue._work();return ibmCommon.queue._count};ibmCommon.queue.remove=function(C){for(var B=0,A=ibmCommon.queue._queue.length;B<A;B++){if(ibmCommon.queue._queue[B][0]==C){ibmCommon.queue._queue.splice(B,1);return true}}return false};ibmCommon.queue._work=function(){if(ibmCommon.queue._lock){return }if(ibmCommon.queue._queue.length==0){return }ibmCommon.queue._lock=true;for(var B=0,A=ibmCommon.queue._queue.length;B<A;B++){if(ibmCommon.queue._queue[B][1]()){ibmCommon.queue._queue[B][2]();ibmCommon.queue._queue.splice(B,1);B--;A=ibmCommon.queue._queue.length}}ibmCommon.queue._lock=false;ibmCommon.queue._timer=setTimeout(ibmCommon.queue._work,50)};ibmCommon.queue.waitForElement=function(C,E,D){if(jQuery.isReady&&typeof (D)!="undefined"&&D==true){E();return }var A=false;var B=ibmCommon.queue.push(function(){return document.getElementById(C)!=null},function(){if(A){return }A=true;E()});if(typeof (D)!="undefined"&&D==true){jQuery(function(){if(A){return }A=true;ibmCommon.queue.remove(B);E()})}};ibmCommon.queue.waitForElement("ibm-top",function(){ibmCommon.meta.init()},true);ibmCommon.queue.waitForElement("ibm-top",function(){ibmCommon.info.init()},true);if(typeof (ibmCommon.callback)!="object"||ibmCommon.callback==null){ibmCommon.callback={}}ibmCommon.callback.__callbacks={};ibmCommon.callback.register=function(A,B){if(!!B&&!!A&&jQuery.isFunction(B)){if(jQuery.inArray(A,ibmCommon.callback.__callbacks)==-1){ibmCommon.callback.__callbacks[A]=[]}ibmCommon.callback.__callbacks[A].push(B)}};ibmCommon.callback.call=function(A,D){if(!!A&&!!ibmCommon.callback.__callbacks[A]!=-1){for(var C=0,B=ibmCommon.callback.__callbacks[A].length;C<B;C++){ibmCommon.callback.__callbacks[A][C].call(null,D)}}};ibmCommon.init=function(){if(ibmCommon.info.v16&&!document.getElementById("ibm-print-masthead")){jQuery("#ibm-masthead").prepend('<img src="//www.ibm.com/i/v14/t/print-header.gif" width="510" height="32" id="ibm-print-masthead" />')}if(ibmCommon.info.v15&&!document.getElementById("print-masthead")){jQuery("#ibm-masthead").prepend('<img src="//www.ibm.com/i/v15/t/print-header.gif" width="510" height="32" alt="" id="print-masthead" />')}if(ibmCommon.info.v15){jQuery("div#ibm-masthead").append('<a name="main"></a>')}};jQuery(ibmCommon.init);function ibmIsv16(){return ibmCommon.info.v16}function ibmSurveySelect(){var A=document.cookie;var D="ibmSurvey=";var C=A.indexOf(D);var B=new Date();if(C==-1||(C>0&&A.indexOf("; "+D)==-1)){if(window.location.href.indexOf(".ibm.com")>0){document.cookie=D+B.getTime().toString()+"; path=/; domain=.ibm.com"}}}ibmSurveySelect();function ibmShareThis(B,A,E,D,C){return }String.prototype.normalizeSpace=function(){return this.replace(/\s+/g," ")};String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")};String.prototype.htmlspecialchars=function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;")};ibmCommon.addScript=function(A,B){jQuery.getScript(A)};ibmCommon.getScript=function(A,B){if(!B){B="utf-8"}jQuery.ajax({url:A,scriptCharset:B,dataType:"script"})};ibmCommon.classNamesToArray=function(A){if(!A){throw"Invalid argument."}if(typeof A.className!="string"){return[]}return A.className.normalizeSpace().trim().split(" ")};ibmCommon.closeBody=function(){var A=ibmCommon.closeBodyFuncs.length;for(var B=0;B<A;B++){if(!ibmCommon.closeBodyFuncs[B].obj){ibmCommon.closeBodyFuncs[B].func(ibmCommon.closeBodyFuncs[B].args)}else{ibmCommon.closeBodyFuncs[B].func.call(ibmCommon.closeBodyFuncs[B].obj,ibmCommon.closeBodyFuncs[B].args)}}};ibmCommon.deleteClassName=function(A,B){jQuery(A).removeClass(B)};ibmCommon.__idcount=0;ibmCommon.generateId=function(){var A;do{ibmCommon.__idcount++;A="gi-"+ibmCommon.__idcount}while(document.getElementById(A)!=null);return A};ibmCommon.getElementsInClass=function(A,B){return jQuery("."+B,A).get()};ibmCommon.getEventX=function(A){return(A.clientX+document.body.scrollLeft-document.body.clientLeft)||A.pageX};ibmCommon.getEventY=function(A){return(A.clientY+document.body.scrollTop-document.body.clientTop)||A.pageY};ibmCommon.getX=function(B){var A=0;if(B.offsetParent){while(B.offsetParent){A+=B.offsetLeft;B=B.offsetParent}}else{if(B.x){A+=B.x}}return A};ibmCommon.getY=function(A){var B=0;if(A.offsetParent){while(A.offsetParent){B+=A.offsetTop;A=A.offsetParent}}else{if(A.y){B+=A.y}}return B};ibmCommon.inClass=function(A,B){return jQuery(A).hasClass(B)};ibmCommon.setCookie=function(A,B){ibmCommon.cookie.set(A,B)};ibmCommon.getCookie=function(A){return ibmCommon.cookie.get(A)};ibmCommon.deleteCookie=function(A){return ibmCommon.cookie.remove(A)};ibmCommon.onload=function(){var A=ibmCommon.onloadFuncs.length;for(var B=0;B<A;B++){if(!ibmCommon.onloadFuncs[B].obj){ibmCommon.onloadFuncs[B].func(ibmCommon.onloadFuncs[B].args)}else{ibmCommon.onloadFuncs[B].func.call(ibmCommon.onloadFuncs[B].obj,ibmCommon.onloadFuncs[B].args)}}};ibmCommon.putCloseBodyFunction=function(C,B,A){ibmCommon.closeBodyFuncs[ibmCommon.closeBodyFuncs.length]={obj:C,func:B,args:A}};ibmCommon.putOnloadFunction=function(C,B,A){ibmCommon.onloadFuncs[ibmCommon.onloadFuncs.length]={obj:C,func:B,args:A}};ibmCommon.setOnloadHandler=function(){if(typeof window.onload=="function"){ibmCommon.putOnloadFunction(null,window.onload,[])}jQuery(function(){ibmCommon.onload})};ibmCommon.initSimpleShowHide=function(B){var C=B instanceof jQuery?B:jQuery(B);if(!C.hasClass("ibm-simple-show-hide")){return }var A=jQuery("div.ibm-hideable",C).slideUp();jQuery("p.ibm-show-hide-cont

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -