mirror of
https://github.com/simon987/Simple-Incremental-Search-Tool.git
synced 2025-12-13 07:09:04 +00:00
bulk indexing
This commit is contained in:
@@ -75,8 +75,15 @@
|
||||
var percent = currentTask.parsed / currentTask.total * 100;
|
||||
|
||||
try {
|
||||
document.getElementById("task-bar-" + currentTask.id).setAttribute("style", "width: " + percent + "%;");
|
||||
|
||||
var bar = document.getElementById("task-bar-" + currentTask.id);
|
||||
bar.setAttribute("style", "width: " + percent + "%;");
|
||||
document.getElementById("task-label-" + currentTask.id).innerHTML = currentTask.parsed + " / " + currentTask.total + " (" + percent.toFixed(2) + "%)";
|
||||
|
||||
if (percent === 100) {
|
||||
bar.classList.add("bg-success")
|
||||
}
|
||||
|
||||
} catch (e) {
|
||||
window.reload();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user