Mobile.js
上传用户:q2283699q
上传日期:2022-05-17
资源大小:10704k
文件大小:10k
- var mwmb,xbrb,ssp;var rjg=false;var pqr=false;var tk=false;var pmf=navigator.userAgent.toLowerCase().indexOf('chrome')>-1;if(navigator.userAgent.indexOf("Firefox")!=-1){var pfnb=navigator.userAgent.indexOf("Firefox")+8;if(parseInt(navigator.userAgent.charAt(pfnb))<=2)rjg=true;else if(parseInt(navigator.userAgent.charAt(pfnb))>=3)pqr=true;}if(navigator.userAgent.indexOf("Shiretoko")!=-1){pqr=true;}if(navigator.userAgent.toLowerCase().indexOf('safari')!=-1)tk=true;function bxnb(lxnb){var jwjb="";if(lxnb!=undefined){jwjb=lxnb.replace(eval("/%2F/g"),"/");jwjb=jwjb.replace(eval("/%3A/g"),":");jwjb=jwjb.replace(eval("/%26/g"),"&");jwjb=jwjb.replace(eval("/%24/g"),"$");jwjb=jwjb.replace(eval("/%2C/g"),",");jwjb=jwjb.replace(eval("/%40/g"),"@");jwjb=jwjb.replace(eval("/%23/g"),"#");jwjb=jwjb.replace(eval("/%2B/g"),"+");jwjb=jwjb.replace(eval("/%3D/g"),"=");jwjb=jwjb.replace(eval("/%3B/g"),";");jwjb=decodeURI(jwjb);}return(jwjb);}function qjwb(wfjb){var sxk=new Date(parseInt(wfjb)*1000);return(sxk.toLocaleString());}function mxr(tsk){var jlkb={"DLL":1,"ISO":1,"MID":1,"WMV":1,"MPG":1,"SAFARI":1,"SAFURL":1,"FIREFOX":1,"FFURL":1,"MOV":1,"M4A":1,"MDB":1,"MP3":1,"PDF":1,"PPT":1,"PNG":1,"DOC":1,"URL":1,"XLS":1,"ZIP":1,"TXT":1,"HTM":1,"HTML":1,"EXE":1};tsk=tsk.toUpperCase();switch(tsk){case"MP4":case"M4P":tsk="MOV";break;case"RTF":case"RTX":tsk="DOC";break;case"LOG":tsk="TXT";break;break;case"POT":case"PPA":case"PPS":case"PPZ":case"PWZ":tsk="PPT";break;case"WMA":tsk="MP3";break;case"HTM":case"HTML":if(navigator.userAgent.toLowerCase().indexOf('safari')!=-1)tsk="SAFARI";else if(navigator.userAgent.indexOf("Firefox")!=-1)tsk="FIREFOX";break;case"URL":if(navigator.userAgent.toLowerCase().indexOf('safari')!=-1)tsk="SAFURL";else if(navigator.userAgent.indexOf("Firefox")!=-1)tsk="FFURL";break;}if(jlkb[tsk])return(tsk+"Ext");else return("DefaultExt");}function dzkb(tsk){var jlkb={"AVI":1,"BAT":1,"BMP":1,"C":1,"CAB":1,"CHM":1,"CNT":1,"CPP":1,"CRT":1,"CSV":1,"DEF":1,"DLL":1,"DOC":1,"DOT":1,"DSP":1,"DSW":1,"EXE":1,"GIF":1,"H":1,"ANI":1,"HTML":1,"HTM":1,"HXC":1,"HXI":1,"HXK":1,"HXS":1,"HXT":1,"INI":1,"ISO":1,"JPG":1,"JS":1,"MAK":1,"MDB":1,"MDE":1,"MDW":1,"MDZ":1,"MID":1,"MP3":1,"URL":1,"MOV":1,"MPG":1,"MSI":1,"PPT":1,"PDF":1,"POT":1,"PNG":1,"RC":1,"REG":1,"RTF":1,"SCT":1,"SLN":1,"HLP":1,"TTF":1,"TXT":1,"VBS":1,"SAFARI":1,"FIREFOX":1,"VCPROJ":1,"VSSSCC":1,"XML":1,"WAV":1,"WMA":1,"WMV":1,"WMZ":1,"WRI":1,"XLS":1,"ZIP":1};tsk=tsk.toUpperCase();switch(tsk){case"MP4":case"M4P":tsk="MOV";break;case"HTM":case"HTML":case"URL":if(navigator.userAgent.toLowerCase().indexOf('safari')!=-1)tsk="SAFARI";else if(navigator.userAgent.indexOf("Firefox")!=-1)tsk="FIREFOX";break;case"POT":case"PPA":case"PPS":case"PPZ":case"PWZ":tsk="PPT";break;}if(jlkb[tsk])return(tsk+"Ext");else return("DefaultExt");}function vms(bvl){var hdx=["DRIVE_UNKNOWN","DRIVE_NO_ROOT_DIR","DRIVE_REMOVABLE","DRIVE_FIXED","DRIVE_REMOTE","DRIVE_CDROM","DRIVE_RAMDISK","DRIVE_REMOVABLE_OTHER"];bvl=parseInt(bvl);if((!isNaN(bvl))&&(bvl<hdx.length))return(hdx[bvl]);else return("DRIVE_UNKNOWN");}function rqf(cpr){wg=cpr;wg=wg.replace(new RegExp("[(]","g"),"\(");wg=wg.replace(new RegExp("[)]","g"),"\)");wg=wg.replace(new RegExp("'","g"),"\'");return(wg);}function tzcb(){qk(mnx);}function lfrb(){if(lww){glr();}}function mskb(lxnb,lbbb,wlw){var ggp=encodeURIComponent(lxnb);if(lbbb!=undefined){if(wlw){document.getElementById("a-"+lbbb).setAttribute("selected","progress-dir");document.getElementById("dir-info-"+lbbb).style.display="none";document.getElementById("a-"+lbbb).style.padding="8px 36px 8px 60px";document.getElementById("a-"+lbbb).style.margin="-8px 0px -8px -10px";document.getElementById("a-"+lbbb).style.cssFloat="none";document.getElementById("a-"+lbbb).style.overflow="hidden";document.getElementById("a-"+lbbb).style.width="";}else document.getElementById("a-"+lbbb).setAttribute("selected","progress");this.setTimeout(function(){location.href='MListDir.htm?Dir='+ggp+'&Session='+ygt;if(wlw){document.getElementById("a-"+lbbb).setAttribute("selected","done-dir");document.getElementById("dir-info-"+lbbb).style.display="block";document.getElementById("a-"+lbbb).style.paddingRight="-50px";document.getElementById("a-"+lbbb).style.width="70%";document.getElementById("a-"+lbbb).style.cssFloat="left";document.getElementById("a-"+lbbb).style.backgroundImage='none';}else document.getElementById("a-"+lbbb).setAttribute("selected","done");},1500);}else location.href='MListDir.htm?Dir='+ggp+'&Session='+ygt;}function rcb(zgwb){flfb=false;clearTimeout(ljs);document.getElementById("Image-File").innerHTML="";nbqb(zgwb);}function mzlb(){document.getElementById("GoTo-Layer").style.display='none';document.getElementById("FileInfo").style.display='none';document.getElementById("FileInfo").innerHTML="";document.body.style.backgroundImage='none';document.getElementById("Mobile-Toolbar").style.display='block';document.getElementById("ListMobileFiles").style.display='block';if(ntb){ntb=false;nttb=jrk;setTimeout("fnq()",0);}scrollTo(0,nbr);}function kxlb(vtp,jyvb,rbd,sxhb,rgl){var fhcb="";var qcmb="";if(rgl!=undefined)qcmb=rgl;if(sxhb)fhcb="-blue";pcs='<div id="'+qcmb+'" class="Button-Mobile'+fhcb+'" style="height:33px;width:'+rbd+'px;" onclick="javascript:'+jyvb+'">'+vtp+'</div>';return(pcs);}function gbgb(twn,znb,mwqb,vktb,rfy,zcj,dcc,gyt,nfhb){this.FileName=twn;this.FileSize=znb;this.FileDate=mwqb;this.FilePath=vktb;this.FileIsDir=rfy;this.FileIsImage=zcj;this.FileIsAudio=dcc;this.FileIsVideo=gyt;this.FileIsDrive=nfhb;}function gkjb(){location.href=jsz;}function srhb(bvl){var hdx=["DRIVE_UNKNOWN","DRIVE_NO_ROOT_DIR","DRIVE_REMOVABLE","DRIVE_FIXED","DRIVE_REMOTE","DRIVE_CDROM","DRIVE_RAMDISK","DRIVE_REMOVABLE_OTHER"];bvl=parseInt(bvl);if((!isNaN(bvl))&&(bvl<hdx.length))return(hdx[bvl]);else return("DRIVE_UNKNOWN");}function lzjb(zdlb,cpr){var lpl="";var tfqb=false;if(cpr!=""){if(zdlb)vncb=xknb;else vncb=lcq;tfqb=confirm(vncb);if(tfqb)kdq(zdlb,cpr);}else alert(nvfb);}function fbm(gtvb,pmw,wzdb){rtrb=wzdb;document.getElementById("NewPath").value=wzdb;document.getElementById("original_path").value=pmw;document.getElementById("isdir").value=gtvb;document.getElementById("FileInfo").style.display="none";document.getElementById("File-Rename").style.display="block";document.getElementById("NewPath").focus();}function t(){if((xbrb!=undefined)&&(xbrb.readyState==4)){var pgvb=xbrb.responseXML;xbrb=undefined;var yndb=ktg(pgvb,"result");var vvy=bgq(pgvb,"ResultText");if(yndb!=spm)alert(vvy);else{lhjb();tzcb();}}}function kdq(gtvb,lpl){if(gtvb)schb="/?Command=DeleteDir";else schb="/?Command=Delete";xbrb=zxpb("POST",schb,t);xbrb.setRequestHeader("X-User-Agent",navigator.userAgent);xbrb.send("File="+encodeURIComponent(lpl));}function ggkb(){if((mwmb!=undefined)&&(mwmb.readyState==4)){var pgvb=mwmb.responseXML;mwmb=undefined;var yndb=ktg(pgvb,"result");var vvy=bgq(pgvb,"ResultText");var mhh;var fzk;var qlt=document.getElementById("isdir").value;if(qlt=="false")hth=false;else hth=true;if(yndb!=spm){if(yndb==vhx){if(hth){cfnb=xzn;kzpb="nn"+nyx;}else{cfnb=pwd;kzpb="nn"+ssm;}alert(jsb(yndb,cfnb+rtrb+kzpb,vvy));}else alert(vvy);}else{document.getElementById("File-Rename").style.display="none";document.getElementById("NewPath").value="";document.getElementById("NewPath").blur();document.getElementById("original_path").value="";document.getElementById("isdir").value="";lhjb();tzcb();}}}function wll(){var ybdb=document.getElementById("original_path").value;var wqr=document.getElementById("NewPath").value;var kqf="/?Command=Rename&Dir="+mnx;mwmb=zxpb("POST",kqf,ggkb);mwmb.setRequestHeader("X-User-Agent",navigator.userAgent);mwmb.send("new_path="+encodeURIComponent(wqr)+"&original_path="+encodeURIComponent(ybdb));return false;}function lhjb(){document.getElementById("ListMobileFiles").innerHTML="";document.body.style.backgroundImage='url(/Common/Images/BusyGrid.gif)';document.body.style.backgroundRepeat='no-repeat';document.body.style.backgroundFixed='fixed';document.body.style.backgroundPosition='50% 50%';document.getElementById("GoTo-Layer").style.display="none";document.getElementById("FileInfo").style.display='none';document.getElementById("FileInfo").innerHTML="";document.getElementById("Mobile-Toolbar").style.display='block';document.getElementById("ListMobileFiles").style.display='block';}function qlb(){document.getElementById("NewPath").value="";document.getElementById("original_path").value="";document.getElementById("isdir").value="";document.getElementById("File-Rename").style.display="none";document.getElementById("FileInfo").style.display="block";}function mjrb(){var tsg=0;wdpb=decodeURI(mnx);tsg=wdpb.lastIndexOf("/");if(tsg<0)tsg=wdpb.lastIndexOf("%2F");if(tsg<0)mnx=fwr;else{if(tsg==0)mnx="/";else mnx=wdpb.substring(0,tsg);}location.href='MListDir.htm?Dir='+mnx+'&Session='+ygt;}function clw(){document.getElementById("GoToPath").value=decodeURIComponent(mnx);document.getElementById("GoTo-Layer").style.display="block";document.body.style.backgroundImage='url(/Web%20Client/Mobile/Images/MobileInfoBG.gif)';document.body.style.backgroundRepeat='repeat-x';document.body.style.backgroundFixed='fixed';document.getElementById("Mobile-Toolbar").style.display='none';document.getElementById("ListMobileFiles").style.display='none';document.getElementById("GoToPath").focus();}function GoTo(){var pvtb=document.getElementById("GoToPath").value;lhjb();mskb(pvtb);return false;}function kgtb(){mzlb();}function zxpb(cvqb,hzw,yvb){var dlg=null;try{dlg=new ActiveXObject("Msxml2.XMLHTTP");}catch(mls){try{dlg=new ActiveXObject("Microsoft.XMLHTTP");}catch(mls){try{dlg=new XMLHttpRequest();}catch(mls){alert(xbm);}}}if(dlg){if((cvqb)&&(hzw)){dlg.open(cvqb,hzw+znpb(),true);if(cvqb.toUpperCase()=="POST")dlg.setRequestHeader("Content-Type","application/x-www-form-urlencoded");}if(yvb)dlg.onreadystatechange=yvb;}return(dlg);}function khn(){if((ssp!=undefined)&&(ssp.readyState==4)){var vvnb=55000;if(krt)vvnb=10000;var pgvb=ssp.responseXML;ssp=undefined;var yndb=ktg(pgvb,"result");var vvy=bgq(pgvb,"ResultText");if(yndb!=spm){alert(jsb(0,"",vvy));}else setTimeout("vdy()",vvnb);}}function vdy(){var spjb="/?Command=NOOP";ssp=zxpb("POST",spjb,khn);ssp.setRequestHeader("X-User-Agent",navigator.userAgent);ssp.send(null);}