yuesu/aspxadmin/comja/upfile.js
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
navigator.hasxmlProgress= (function(){
//Detect if a browser supports XMLHTTPRequest
var r= window.XMLHttpRequest && new window.XMLHttpRequest() || '';
return 'onprogress' in r;
})()
function IsHtml5() {
//if (typeof (Worker) !== "undefined" && navigator.hasxmlProgress && window.File && window.FileList && window.FileReader && window.Blob ) {return true; } else {return false;}
if (typeof (Worker) !== "undefined" && navigator.hasxmlProgress ) {return true; } else {return false;}
}
function uploadProgress(evt) {
if (evt.lengthComputable) {
var percentComplete = Math.round(evt.loaded * 100 / evt.total);
document.getElementById('progressNumber').innerHTML = percentComplete.toString() + '%';
}
else {
document.getElementById('progressNumber').innerHTML = 'unable to compute';
}
}
function uploadComplete(evt) {
/* 服务器端返回响应时候触发event事件*/
console.log(evt.target.responseText);
eval(evt.target.responseText);
try{
//window.parent.document.getElementById('zoomtueditor').style.display="none";
//window.parent.document.getElementById('wrapeditor').style.display = "none";
//alert(evt.target.responseText);
}
catch (Error){
}
}
function uploadFailed(evt) {
alert("\u9047\u5230\u7db2\u7d61\u932f\u8aa4\uff0c\u4e0a\u50b3\u7d42\u6b62\uff01");
// window.parent.document.getElementById('zoomtueditor').style.display="none";
// window.parent.document.getElementById('wrapeditor').style.display="none";
}
function uploadCanceled(evt) {
alert("The upload has been canceled by the user or the browser dropped the connection.");
}
/* 负责ajax发送数据 */
function up(fd, file,len,i) {
if (i>1)
{
var h=window.parent.document.getElementById('zoomtueditor').offsetHeight;
//h = h + 32;
//var h2=window.parent.frames["ifr_editor_upload"].document.body.scrollHeight;
var ifm = window.parent.document.getElementById("ifr_editor_upload");
var subWeb = window.parent.document.frames ? window.parent.document.frames["ifr_editor_upload"].document :ifm.contentDocument;
var h2=0;
if (ifm != null && subWeb != null) {
h2 = subWeb.body.scrollHeight;
}
h2=h2+32;
window.parent.document.getElementById('zoomtueditor').style.height = h+"px";
ifm.style.height = h2+"px";
}
var einfo = document.createElement('div');
var eid=file.name+"oneinfo";
einfo.setAttribute("id", eid);
einfo.setAttribute("class", "oneinfo");
后面还有 76 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
