1function FileProgress(file, targetID) { 2 this.fileProgressID = file.id; 3 this.opacity = 100; 4 this.height = 0; 5 6// this.fileProgressWrapper = document.getElementById(this.fileProgressID); 7 if (!this.fileProgressWrapper) { 8 this.fileProgressWrapper = document.createElement("div"); 9 this.fileProgressElement = document.createElement("div"); 10 this.fileProgressWrapper.appendChild(this.fileProgressElement); 11 } else { 12 this.fileProgressElement = this.fileProgressWrapper.firstChild; 13 this.reset(); 14 } 15 this.height = this.fileProgressWrapper.offsetHeight; 16 this.setTimer(null); 17} 18FileProgress.prototype.setTimer = function (timer) { this.fileProgressElement["FP_TIMER"] = timer; }; 19FileProgress.prototype.getTimer = function (timer) { return this.fileProgressElement["FP_TIMER"] || null; }; 20 21FileProgress.prototype.reset = function () {}; 22 23FileProgress.prototype.setProgress = function (percentage) { 24 upload_started = 1; 25 document.getElementById('progress2').style.width = percentage + "%"; 26 document.getElementById('pnumber').innerHTML = percentage; 27// document.getElementById('upload_bar').style.display = "none"; 28}; 29 30FileProgress.prototype.setComplete = function () { document.getElementById('upload_done').innerHTML = "done"; upload_done=1; }; 31FileProgress.prototype.setError = function () { }; 32FileProgress.prototype.setCancelled = function () { }; 33FileProgress.prototype.setStatus = function (status) { }; 34FileProgress.prototype.toggleCancel = function (show, swfUploadInstance) { }; 35FileProgress.prototype.appear = function () { };
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.