Song.Site/Manage/Utility/UploadPath/js/filegroupprogress.js

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*
文件上传总进度
*/
/*
声明全局变量
*/
//全部上传文件总大小
var fg_fileSizes = 0;

//已上传文件大小
var fg_uploads = 0;

//总上传进度对象
var fg_object;
//Download by http://www.codefans.net
function FileGroupProgress()
{
    this.fileGroupElement = document.getElementById(swfu.settings.custom_settings.s_cnt_progress);
    if (!this.fileGroupElement)
    {
        this.fileGroupElement = document.createElement("div");
        this.fileGroupElement.id = swfu.settings.custom_settings.s_cnt_progress;
        this.fileGroupElement.className = swfu.settings.custom_settings.container_css;

        //上传总进度文本0
        this.fileSumSpan = document.createElement("span");
        this.fileSumSpan.className = swfu.settings.custom_settings.s_cnt_span_text;
        this.fileSumSpan.appendChild(document.createTextNode("上传总进度:"));
        this.fileGroupElement.appendChild(this.fileSumSpan);

        //进度条容器1
        this.fileProgressDiv = document.createElement("div");
        this.fileProgressDiv.className = "statebarBigDiv";

        //进度条1.1
        this.fileStateBar = document.createElement("div");
        this.fileStateBar.className = "statebar";
        this.fileStateBar.id = swfu.settings.custom_settings.s_cnt_progress_statebar;
        this.fileStateBar.innerHTML = " ";
        this.fileStateBar.style.width = "0%";
        this.fileProgressDiv.appendChild(this.fileStateBar);
        this.fileGroupElement.appendChild(this.fileProgressDiv);

        //百分比2
        this.filePercent = document.createElement("span");
        this.filePercent.className = "ftt";
        this.filePercent.id = swfu.settings.custom_settings.s_cnt_progress_percent;
        this.fileGroupElement.appendChild(this.filePercent);

        //已上传文本3
        this.spanTextU = document.createElement("span");
        this.spanTextU.appendChild(document.createTextNode(",已上传"));
        this.fileGroupElement.appendChild(this.spanTextU);

        //已上传大小4
        this.fileUploadSize = document.createElement("span");
        this.fileUploadSize.id = swfu.settings.custom_settings.s_cnt_progress_uploaded;
        this.fileUploadSize.innerHTML = "0bytes";
        this.fileGroupElement.appendChild(this.fileUploadSize);

后面还有 79 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。