📄 isc_fileloader.js
字号:
return _3},$408:function(_1,_2,_3,_4){_1=this.$409(_1);var _5=false,_6;for(var i=0;i<_1.length;i++){var _8=_1[i];if(_4.isModule){if(!_4.cacheOnly){var _9=_8;if(_9.indexOf("ISC_")==0)_9=_9.substring(4);if(isc["module_"+_9]){this.logWarn("Suppressed duplicate load of module: "+_9);continue}if(isc.$41r[_9]&&isc.$41r[_9].serverOnly)continue}if(_8.indexOf("ISC_")!=0&&_8.indexOf("/")==-1)_8="ISC_"+_8;if(_8.indexOf("/")==-1)_8=this.getIsomorphicDir()+this.modulesDir+_8+".js"}if(this.disableCaching&&!_4.cacheOnly){_8+=(_8.indexOf("?")!=-1?"&":"?")+"ts="+(new Date().getTime())}if(_4.isModule&&this.addVersionToLoadTags){var _10=isc.versionNumber;if(_10.indexOf("${")==0)_10="dev";_8+=(_8.indexOf("?")!=-1?"&":"?")+this.versionParamName+"="+_10+".js"}var _11=_8+"_"+this.$403+"_"+new Date().getTime();var _12=this.$406[_11]={fileID:_11,URL:_8,type:_3}if(_4)for(var _13 in _4)_12[_13]=_4[_13];if(_12.type==null){var _14=_8;var _15=_14.indexOf("?");if(_15!=-1)_14=_14.substring(0,_15);if(_14.match(/\.js$/i))_12.type="js";else if(_14.match(/\.css$/i))_12.type="css";else if(_14.match(/\.(gif|png|tiff|tif|bmp|dib|ief|jpe|jpeg|jpg|pbm|pct|pgm|pic|pict|ico)$/i))_12.type="image";if(_12.type==null){this.logWarn("Unable to autodetect file type for URL: "+_8+" please specify it explicitly in your call to"+" isc.FileLoader.cacheFile()/isc.FileLoader.loadFile()."+" Ignoring this file.");delete this.$406[_11];return}}if(_12.type=="image"){_5=true;_6=_12;this.$404.push(_11)}else{if(isc.Browser.isMoz&&isc.Browser.geckoVersion<20051107&&_12.cacheOnly&&!_4.isModule){delete this.$406[_11];continue}else{this.logInfo("queueing URL: "+_12.URL+", type: "+_12.type+", onload: "+_12.onload);this.$405.push(_11);_5=true;_6=_12}}}if(_5&&_2)_6.onload=_2;if(!_5&&_2){if(this.isA.String(_2))eval(_2);else _2();return}this.$41b()},$41c:function(){var _1="";while(this.$404.length){var _2=this.$404.shift();var _3=this.$406[_2].URL;var _4="if(window.isc)isc.FileLoader.fileLoaded(\""+_2+"\")";_1+="<IMG SRC='"+_3+"' onload='"+_4+"' onerror='"+_4+"' onabort='"+_4+(isc.Browser.isOpera?"' STYLE=visibility:hidden;position:absolute;top:-1000px'>":"' STYLE='display:none'>")}this.$p8(_1)},$41b:function(){if(!isc.SA_Page.isLoaded())return;this.$49g=true;if(this.$405.length){if(this.$41d){return}var _1=this.$405.shift();var _2=this.$406[_1];var _3=_2.URL;this.$41d=true;if(_2.defer){this.$41e(_1)}else{this.$41f(_1)}}else{this.$41c()}this.$49g=false},$41e:function(_1){var _2=this.$406[_1];var _3=_2.URL;var _4=_2.type;if(_4=="js"){if(isc.Browser.isOpera){this.$49h(_3,"isc.FileLoader.fileLoaded('"+_1+"')")}else if(isc.Browser.isMoz&&isc.Browser.geckoVersion<20051107){this.$p8("<SCRIPT SRC='"+_3+"'></SCRIPT><SCRIPT>if(window.isc)isc.FileLoader.fileLoaded('"+_1+"')</SCRIPT>")}else{isc.SA_XMLHttp.get(_3,{method:this.fileLoaded,target:this,args:[_1]})}}else if(_4=="css"){_2.cssIndex=isc.Browser.isSafari?this.nextCSSLoader:document.styleSheets.length;_2.cssLoadStart=new Date().getTime();if(isc.Browser.isSafari){if(this.nextCSSLoader>window.isc_maxCSSLoaders){this.logWarn("maxCSSLoaders ("+window.isc_maxCSSLoaders+") exceeded - can't load "+_2.URL+" set isc_maxCSSLoaders to a larger number.");this.fileLoaded(_1);return}this.$41g().href=_3}else{this.$41h(_3)}this.startCSSPollTimer(_1,0)}},startCSSPollTimer:function(_1,_2){window.setTimeout("isc.FileLoader.pollForCSSLoaded('"+_1+"')",_2)},pollForCSSLoaded:function(_1){var _2=this.$406[_1];var _3=document.styleSheets[_2.cssIndex];var _4=false;if(_3==null){this.logWarn("Can't find cssRule for URL: "+_2.URL+" at index: "+_2.cssIndex)}else{if(isc.Browser.isIE){if(_3.rules!=null&&_3.rules.length>0)_4=true}else if(isc.Browser.isOpera){if(_3.cssRules!=null&&_3.cssRules.length>0)_4=true}else{try{if(_3.cssRules!=null&&_3.cssRules.length>0)_4=true}catch(e){if(isc.Browser.isMoz&&(document.domain!=location.hostname||(_2.URL.startsWith("http")&&_2.URL.indexOf(location.hostname)==-1))){_4=true}}}}if(!_4){var _5=new Date().getTime();if(_5>_2.cssLoadStart+this.cssWarnTimeout&&!_2.warnedAboutCSSTimeout){this.logWarn("CSS file "+_2.URL+" taking longer than "+this.cssWarnTimeout+" to load - may indicate a bad URL");_2.warnedAboutCSSTimeout=true}if(_5>_2.cssLoadStart+this.cssLoadTimeout){this.logWarn("cssLoadTimeout of: "+this.cssLoadTimeout+" exceeded for: "+_2.URL+" - assuming loaded, firing onload handler.");_4=true}}if(_4){this.fileLoaded(_1)}else{this.startCSSPollTimer(_1,this.cssPollFrequency)}},$41f:function(_1){var _2=this.$406[_1];var _3=_2.URL;if(isc.Browser.isOpera){this.$49h(_3,"isc.FileLoader.fileLoaded('"+_1+"')","text/html")}else if(isc.Browser.isIE||isc.Browser.isSafari||(isc.Browser.isMoz&&isc.Browser.geckoVersion>=20051107)){isc.SA_XMLHttp.get(_3,{method:this.fileLoaded,target:this,args:[_1]})}else if(isc.Browser.isMoz){var _4=this.$41i();this.$41j=_1;_4.src=_3}},fileLoaded:function(_1,_2,_3,_4){if(!window.isc)return;if(_2!=null&&_2.responseText)_2=_2.responseText;if(!_1){_1=this.$41j;delete this.$41j}var _5=this.$406[_1];if(!_5){return}if(_5.defer&&_5.type=="js"&&_2){_5.fileContents=_2;window.setTimeout("isc.FileLoader.delayedEval('"+_1+"')",0)}else{this.$41k(_1)}if(_5.type!="image"){this.$41d=false}if(this.$49g){window.setTimeout("isc.FileLoader.$41b()",0)}else this.$41b()},delayedEval:function(_1){var _2=this.$406[_1];var _3=_2.fileContents;if(isc.Browser.isSafari){window.setTimeout([_3,";isc.FileLoader.$41k('",_1,"')"].join(""),0);return}else if(isc.Browser.isIE){window.execScript(_3,"javascript")}else{window.eval(_3)}this.$41k(_1)},$41k:function(_1){var _2=this.$406[_1];this.$41l();if(_2.onload){if(this.isA.String(_2.onload))eval(_2.onload);else _2.onload(_2)}delete this.$406[_1]},$41i:function(){if(!this.$222){this.$p8("<IFRAME STYLE='position:absolute;visibility:hidden;top:-1000px'"+" onload='if(window.isc)isc.FileLoader.fileLoaded()'"+" NAME='isc_fileLoader_iframe' ID='isc_fileLoader_iframe'></IFRAME>");this.$222=document.getElementById("isc_fileLoader_iframe")}return this.$222},$p8:function(_1){if(!this.$41m)this.$41m=document.getElementsByTagName("body")[0];var _2=this.$41m;if(isc.Browser.isIE||isc.Browser.isOpera){_2.insertAdjacentHTML('beforeEnd',_1)}else{var _3=_2.ownerDocument.createRange();_3.setStartBefore(_2);var _4=_3.createContextualFragment(_1);_2.appendChild(_4)}},$41h:function(_1,_2){var e=document.createElement("link");e.rel="stylesheet";e.type="text/css";e.href=_1;if(_2)e.onload=_2;document.getElementsByTagName("body")[0].appendChild(e)},$49h:function(_1,_2,_3){if(!_3)_3="text/javascript";var e=document.createElement("script");e.type=_3e.src=_1;if(_2)e.onload=_2;document.getElementsByTagName("body")[0].appendChild(e)},$41n:function(){for(var i=0;i<this.$405.length;i++){var _2=this.$405[i];var _3=this.$406[_2];if(_3.isModule)return true}return false},$41l:function(){if(isc.Page&&!isc.Page.isLoaded()){isc.Page.finishedLoading()}},$41o:function(){this.logInfo("FileLoader initialized");setTimeout("isc.FileLoader.$41b()",0)},$41g:function(_1){if(_1==null)_1=this.nextCSSLoader++;return document.getElementById("isc_fl_css_loader"+_1)}});isc.addGlobal("FL",isc.FileLoader);isc.A=isc.FileLoader;isc.A.loadJSFiles=isc.FileLoader.loadJSFile;isc.A.loadModules=isc.FileLoader.loadModule;isc.A.cacheFiles=isc.FileLoader.cacheFile;isc.A.cacheModules=isc.FileLoader.cacheModule;isc.A.loadCSSFiles=isc.FileLoader.loadCSSFile;isc.A.loadFiles=isc.FileLoader.loadFile;if(isc.Browser.isSafari){var s="";for(var i=0;i<window.isc_maxCSSLoaders;i++){s+="<LINK id='isc_fl_css_loader"+i+"' name='isc_fl_css_loader"+i+"' REL='stylesheet' TYPE='text/css'>"}document.write(s)}isc.SA_Page.onLoad(isc.FileLoader.$41o,isc.FileLoader);isc._moduleEnd=isc._FileLoader_end=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('FileLoader module init time: ' + (isc._moduleEnd-isc._moduleStart) + 'ms','loadTime');}else{if(window.isc && isc.Log && isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'FileLoader'.");}/* SmartClient Ajax RIA system Version 6.5/LGPL Development Only (2008-04-30) Copyright 2000-2007 Isomorphic Software, Inc. All rights reserved. "SmartClient" is a trademark of Isomorphic Software, Inc. LICENSE NOTICE INSTALLATION OR USE OF THIS SOFTWARE INDICATES YOUR ACCEPTANCE OF THE SOFTWARE EVALUATION LICENSE AGREEMENT. If you have received this file without an Isomorphic Software license file, please see: http://www.isomorphic.com/licenses/isc_eval_license_050316.html You are not required to accept this agreement, however, nothing else grants you the right to copy or use this software. Unauthorized copying and use of this software is a violation of international copyright law. EVALUATION ONLY This software is provided for limited evaluation purposes only. You must acquire a deployment license from Isomorphic Software in order to use the SmartClient system, or any portion thereof, in any non-evaluation application, including internal or non-commercial applications. PROPRIETARY & PROTECTED MATERIAL This software contains proprietary materials that are protected by contract and intellectual property law. YOU ARE EXPRESSLY PROHIBITED FROM ATTEMPTING TO REVERSE ENGINEER THIS SOFTWARE OR MODIFY THIS SOFTWARE FOR HUMAN READABILITY. CONTACT ISOMORPHIC For more information regarding license rights and restrictions, or to report possible license violations, please contact Isomorphic Software by email (licensing@isomorphic.com) or web (www.isomorphic.com).*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -