main.basic.js
复制代码 代码如下:
/**************************************************
* The Basic Lib for HUTIA frame work
* Author: Hutia
* E-Mail: Hutia2@gmail.com
* Create: 2006-08-21
* Last Modify: 2006-08-26
* Version: 1.02
* Copyright Declare: Everybody can use for freely but can not be used in commerce.
*
* Please keep this information while quote.
**/
//******** BEFORE ALL **************
var currentLibName="main.basic";
try{ // catch all the exceptions during loading
//================= Declare CONSTANT Section === Start ===========
var vbOK=0; var vbOKCancel=1; var vbAbortRetryIgnor=2; var vbYesNoCancel=3;
var vbYesNo=4; var vbRetryCacel=5; var vbStop=16; var vbQuest=32; var vbAlert=48;
var vbInfo=64; var vbReturnOK=1; var vbReturnCacel=2; var vbReturnAbort=3;
var vbReturnRetry=4; var vbReturnIgnor=5; var vbReturnYes=6; var vbReturnNo=7;
var vbCrLf="\r\n";
//----------------- Declare CONSTANT Section - End ---------------
/////////////////////////////////////////////////////////////////////////
//================= Declare Global Variable Section === Start ===========
var SITE_ROOT="E:\\hutia\\program\\Developing\\GJS_v3".replace(/\\/g,"\/").replace(/([^\/])$/,"$1\/");
//----------------- Declare Global Variable Section - End ---------------
/////////////////////////////////////////////////////////////////////////
//================= Declare Global Function Section === Start ===========
// Alia Name for AsynLoader.depend
$depend=function(str,currentLibName,defer){
AsynLoader.depend(str,currentLibName,defer);
}
// Alia Name for AsynLoader.include
$include=function(str){
AsynLoader.include(str);
}
function say(str){
alert(str);
}
function uid(){
return("u"+(new Date()).getTime().toString(35)+parseInt(Math.random()*999999).toString(35));
}
//----------------- Declare Global Function Section - End ---------------
/////////////////////////////////////////////////////////////////////////
//================= Declare Global Object Section === Start ===========
// The asynchronous loader
var AsynLoader= new function(){
// delare private variable
var alias, currentPath, dependences, dependent, libs, paths;
}
AsynLoader.alertLoadResult=function(){
var str="";
for(var i in libs){if(libs[i]=="loaded"){str+="Load \""+i+"\" Successfully.\r\n";}else{str+=libs[i]+"\r\n";}}
say(str);
}
AsynLoader.alias=function(aliasName,strPath,singleInstance){
strPath=this.getPath(strPath);
if(!strPath||typeof(aliasName)!="string"||aliasName=="")return;
alias[aliasName]=strPath;
alias[aliasName][2]=Boolean(singleInstance);
}
AsynLoader.depend=function(strLibName,strSrcLibName,defer){
if(typeof(strLibName)!="string"||strLibName=="")throw("Invalid Lib Name.");
if(libs[strLibName]!="loaded"){
if(defer&&alias[strLibName]){
AsynLoader.include(strLibName);
}else throw("Dependence validation failure.\r\n"+libs[strLibName]);
}
if(typeof(strSrcLibName)=="string"&&strSrcLibName!=""){
temp=strSrcLibName+" => "+strLibName;
dependences.push(temp);
}
}
AsynLoader.getDependBy=function(str){
var re=new Array();
for(var i=0;i<dependences.length;i++)if(dependences[i].split(" => ")[1]==str)re.push(dependences[i].split(" => ")[0]);
return(re.join(";"));
}
AsynLoader.getDependOn=function(str){
var re=new Array();
for(var i=0;i<dependences.length;i++)if(dependences[i].split(" => ")[0]==str)re.push(dependences[i].split(" => ")[1]);
return(re.join(";"));
}
AsynLoader.getLibs=function(){
var re=new Array(), hash=new Array();
for(var i in libs)if(!hash[i]){hash[i]=true;re.push(i);}
re.sort();
return(re.join(";"));
}
AsynLoader.getPath=function(strPath){
var ext, i, re, strPath;
if(typeof(strPath)!="string"||strPath=="")return(false);
ext="js";
if(strPath.indexOf(":")==-1)if(this.pathType=="absolute"){strPath=SITE_ROOT+currentPath+strPath;}else{strPath=currentPath+strPath;}
i=strPath.lastIndexOf(".");
if(i!=-1&&i<strPath.length-2){
ext=strPath.substring(i+1).toLowerCase();
}else{
strPath=strPath+"."+ext;
}
return([strPath,ext]);
}
AsynLoader.include=function(strPath,className){
var ext, i, singleInstance, strPath;
if(alias[strPath]){
strPath=alias[strPath];
}else{
strPath=this.getPath(strPath);
}
if(!strPath)return(false);
ext=strPath[1];
singleInstance=Boolean(strPath[2])||className=="singleInstance"||paths[strPath]=="singleInstance";
strPath=strPath[0];
if(singleInstance&&paths[strPath])return;
paths[strPath]=singleInstance?"singleInstance":true;
switch(ext){
case "js":
document.write("<scr"+"ipt type=\"text\/javascript\" src=\""+strPath+"\" ><\/scr"+"ipt>");
break;
case "vbs":
document.write("<scr"+"ipt type=\"text\/vbscript\" src=\""+strPath+"\"><\/scr"+"ipt>");
break;
case "css":
document.write("<link rel=\"stylesheet\" type=\"text\/css\" href=\""+strPath+"\" \/>");
break;
case "jpg": case "gif": case "bmp": case "jpeg": case "png":
document.write("<img alt=\"\" "+(className?" class=\""+className+"\" ":"")+" src=\""+strPath+"\" \/>");
break;
default:
document.write("<iframe frameBorder=\"0\" "+(className?" class=\""+className+"\" ":"")+" src=\""+strPath+"\"><\/iframe>");
break;
}
}
AsynLoader.init=function(){
alias=new Array();
currentPath="";
dependences=new Array();
dependent=new Array();
libs=new Array();
paths=new Array();
this.pathType="absolute";
}
AsynLoader.libs=function(blnNotLoaded){
var re=new Array();
for(var i in libs)if((libs[i]=="loaded")^blnNotLoaded)re.push(i);
return(re);
}
AsynLoader.loadFailure=function(strLibName,e){
if(e=="exit")return;
libs[strLibName]="Loading "+strLibName+" model Failed:\r\n";
for(var i in e)libs[strLibName]+=" "+i+":"+e[i]+"\r\n";
}
AsynLoader.loadSuccess=function(strLibName){
libs[strLibName]="loaded";
}
AsynLoader.setPath=function(strPath){
if(typeof(strPath)!="string")return;
currentPath=strPath.replace(/\\/g,"\/").replace(/([^\/])$/,"$1\/");
}
AsynLoader.singleInstance=function(strPath){
if(alias[strPath]){
strPath=alias[strPath];
}else{
strPath=this.getPath(strPath);
}
if(!strPath)return(false);
strPath=strPath[0];
if(paths[strPath]){
throw("exit");
}else{
paths[strPath]=true;
}
}
AsynLoader.init();
//----------------- Declare Global Object Section - End ---------------
/////////////////////////////////////////////////////////////////////////
//================= Initialization Section === Start ===========
AsynLoader.pathType="relative";
AsynLoader.include("js/main.alias.js");
//----------------- Initialization Section - End ---------------
//***************** AFTER ALL ***********************
AsynLoader.loadSuccess(currentLibName);
}catch(e){ AsynLoader.loadFailure(currentLibName); }
////////////////////////////////////////////////////////////////
/////////////////// File End //////////////////////////
////////////////////////////////////////////////////////////////
复制代码 代码如下:
/**************************************************
* The Basic Lib for HUTIA frame work
* Author: Hutia
* E-Mail: Hutia2@gmail.com
* Create: 2006-08-21
* Last Modify: 2006-08-26
* Version: 1.02
* Copyright Declare: Everybody can use for freely but can not be used in commerce.
*
* Please keep this information while quote.
**/
//******** BEFORE ALL **************
var currentLibName="main.basic";
try{ // catch all the exceptions during loading
//================= Declare CONSTANT Section === Start ===========
var vbOK=0; var vbOKCancel=1; var vbAbortRetryIgnor=2; var vbYesNoCancel=3;
var vbYesNo=4; var vbRetryCacel=5; var vbStop=16; var vbQuest=32; var vbAlert=48;
var vbInfo=64; var vbReturnOK=1; var vbReturnCacel=2; var vbReturnAbort=3;
var vbReturnRetry=4; var vbReturnIgnor=5; var vbReturnYes=6; var vbReturnNo=7;
var vbCrLf="\r\n";
//----------------- Declare CONSTANT Section - End ---------------
/////////////////////////////////////////////////////////////////////////
//================= Declare Global Variable Section === Start ===========
var SITE_ROOT="E:\\hutia\\program\\Developing\\GJS_v3".replace(/\\/g,"\/").replace(/([^\/])$/,"$1\/");
//----------------- Declare Global Variable Section - End ---------------
/////////////////////////////////////////////////////////////////////////
//================= Declare Global Function Section === Start ===========
// Alia Name for AsynLoader.depend
$depend=function(str,currentLibName,defer){
AsynLoader.depend(str,currentLibName,defer);
}
// Alia Name for AsynLoader.include
$include=function(str){
AsynLoader.include(str);
}
function say(str){
alert(str);
}
function uid(){
return("u"+(new Date()).getTime().toString(35)+parseInt(Math.random()*999999).toString(35));
}
//----------------- Declare Global Function Section - End ---------------
/////////////////////////////////////////////////////////////////////////
//================= Declare Global Object Section === Start ===========
// The asynchronous loader
var AsynLoader= new function(){
// delare private variable
var alias, currentPath, dependences, dependent, libs, paths;
}
AsynLoader.alertLoadResult=function(){
var str="";
for(var i in libs){if(libs[i]=="loaded"){str+="Load \""+i+"\" Successfully.\r\n";}else{str+=libs[i]+"\r\n";}}
say(str);
}
AsynLoader.alias=function(aliasName,strPath,singleInstance){
strPath=this.getPath(strPath);
if(!strPath||typeof(aliasName)!="string"||aliasName=="")return;
alias[aliasName]=strPath;
alias[aliasName][2]=Boolean(singleInstance);
}
AsynLoader.depend=function(strLibName,strSrcLibName,defer){
if(typeof(strLibName)!="string"||strLibName=="")throw("Invalid Lib Name.");
if(libs[strLibName]!="loaded"){
if(defer&&alias[strLibName]){
AsynLoader.include(strLibName);
}else throw("Dependence validation failure.\r\n"+libs[strLibName]);
}
if(typeof(strSrcLibName)=="string"&&strSrcLibName!=""){
temp=strSrcLibName+" => "+strLibName;
dependences.push(temp);
}
}
AsynLoader.getDependBy=function(str){
var re=new Array();
for(var i=0;i<dependences.length;i++)if(dependences[i].split(" => ")[1]==str)re.push(dependences[i].split(" => ")[0]);
return(re.join(";"));
}
AsynLoader.getDependOn=function(str){
var re=new Array();
for(var i=0;i<dependences.length;i++)if(dependences[i].split(" => ")[0]==str)re.push(dependences[i].split(" => ")[1]);
return(re.join(";"));
}
AsynLoader.getLibs=function(){
var re=new Array(), hash=new Array();
for(var i in libs)if(!hash[i]){hash[i]=true;re.push(i);}
re.sort();
return(re.join(";"));
}
AsynLoader.getPath=function(strPath){
var ext, i, re, strPath;
if(typeof(strPath)!="string"||strPath=="")return(false);
ext="js";
if(strPath.indexOf(":")==-1)if(this.pathType=="absolute"){strPath=SITE_ROOT+currentPath+strPath;}else{strPath=currentPath+strPath;}
i=strPath.lastIndexOf(".");
if(i!=-1&&i<strPath.length-2){
ext=strPath.substring(i+1).toLowerCase();
}else{
strPath=strPath+"."+ext;
}
return([strPath,ext]);
}
AsynLoader.include=function(strPath,className){
var ext, i, singleInstance, strPath;
if(alias[strPath]){
strPath=alias[strPath];
}else{
strPath=this.getPath(strPath);
}
if(!strPath)return(false);
ext=strPath[1];
singleInstance=Boolean(strPath[2])||className=="singleInstance"||paths[strPath]=="singleInstance";
strPath=strPath[0];
if(singleInstance&&paths[strPath])return;
paths[strPath]=singleInstance?"singleInstance":true;
switch(ext){
case "js":
document.write("<scr"+"ipt type=\"text\/javascript\" src=\""+strPath+"\" ><\/scr"+"ipt>");
break;
case "vbs":
document.write("<scr"+"ipt type=\"text\/vbscript\" src=\""+strPath+"\"><\/scr"+"ipt>");
break;
case "css":
document.write("<link rel=\"stylesheet\" type=\"text\/css\" href=\""+strPath+"\" \/>");
break;
case "jpg": case "gif": case "bmp": case "jpeg": case "png":
document.write("<img alt=\"\" "+(className?" class=\""+className+"\" ":"")+" src=\""+strPath+"\" \/>");
break;
default:
document.write("<iframe frameBorder=\"0\" "+(className?" class=\""+className+"\" ":"")+" src=\""+strPath+"\"><\/iframe>");
break;
}
}
AsynLoader.init=function(){
alias=new Array();
currentPath="";
dependences=new Array();
dependent=new Array();
libs=new Array();
paths=new Array();
this.pathType="absolute";
}
AsynLoader.libs=function(blnNotLoaded){
var re=new Array();
for(var i in libs)if((libs[i]=="loaded")^blnNotLoaded)re.push(i);
return(re);
}
AsynLoader.loadFailure=function(strLibName,e){
if(e=="exit")return;
libs[strLibName]="Loading "+strLibName+" model Failed:\r\n";
for(var i in e)libs[strLibName]+=" "+i+":"+e[i]+"\r\n";
}
AsynLoader.loadSuccess=function(strLibName){
libs[strLibName]="loaded";
}
AsynLoader.setPath=function(strPath){
if(typeof(strPath)!="string")return;
currentPath=strPath.replace(/\\/g,"\/").replace(/([^\/])$/,"$1\/");
}
AsynLoader.singleInstance=function(strPath){
if(alias[strPath]){
strPath=alias[strPath];
}else{
strPath=this.getPath(strPath);
}
if(!strPath)return(false);
strPath=strPath[0];
if(paths[strPath]){
throw("exit");
}else{
paths[strPath]=true;
}
}
AsynLoader.init();
//----------------- Declare Global Object Section - End ---------------
/////////////////////////////////////////////////////////////////////////
//================= Initialization Section === Start ===========
AsynLoader.pathType="relative";
AsynLoader.include("js/main.alias.js");
//----------------- Initialization Section - End ---------------
//***************** AFTER ALL ***********************
AsynLoader.loadSuccess(currentLibName);
}catch(e){ AsynLoader.loadFailure(currentLibName); }
////////////////////////////////////////////////////////////////
/////////////////// File End //////////////////////////
////////////////////////////////////////////////////////////////
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
暂无评论...
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。
更新日志
2024年11月30日
2024年11月30日
- 华晨宇《华晨宇日出演唱会特辑》[Hi-Res][24bit 48kHz][FLAC/分轨][941.13MB]
- 刘俊麟 《美妙!我被五小只包围了》[320K/MP3][86.74MB]
- 刘俊麟 《美妙!我被五小只包围了》[FLAC/分轨][454.29MB]
- 群星《错位 影视原声带》[320K/MP3][63.65MB]
- 中国音乐地图之听见四川彝族民间歌曲乐曲集2020[WAV+分轨]
- 姚璎格《姚璎格的歌(24K纯金CD)》[正版原抓WAV+CUE]
- 高垣彩陽《melodia4》【Hi-Res】24bit-96kHz【flac】
- 王菀之《The Missing Something》[320K/MP3][67.2MB]
- 赵翊帆《LUNARFACE》[320K/MP3][88.81MB]
- 赵翊帆《LUNARFACE》[FLAC/分轨][464.62MB]
- 小野丽莎《OnoLisabest1997-2001》日本醇选辑[正版原抓WAV+CUE]
- 天籁之音NanaMouskouri《AtHerVeryBest》K2HD[正版原抓WAV+CUE]
- 古典吉他《鲁特琴-BachInspirations巴赫灵感》ThibautGarcia[24Bit/96kHz]
- 刘纬武《睡眠音乐家 缓解疼痛 赫兹白噪音》[320K/MP3][217.2MB]
- 刘纬武《睡眠音乐家 缓解疼痛 赫兹白噪音》[FLAC/分轨][870.69MB]