| 54 | } |
| 55 | |
| 56 | function removeScanBar(threadN) { |
| 57 | const progress_bar = document.getElementById('MemDump_progress-thread-' + threadN); |
| 58 | |
| 59 | if (progress_bar) { |
| 60 | progress_bar.style.animationPlayState = "paused"; |
| 61 | setTimeout(()=>{ |
| 62 | void progress_bar.offsetHeight; |
| 63 | progress_bar.classList.add('off'); |
| 64 | progress_bar.style.animationPlayState = "running"; |
| 65 | }, 500); |
| 66 | } |
| 67 | |
| 68 | const padding_bar = document.getElementById('MemDump_progress-padding-' + threadN); |
| 69 | const remaining_count = document.querySelectorAll('[id^="MemDump_progress-padding-"]').length; |
| 70 | |
| 71 | if (padding_bar && remaining_count > 1) { |
| 72 | padding_bar.style.animationPlayState = "paused"; |
| 73 | setTimeout(()=>{ |
| 74 | void padding_bar.offsetHeight; |
| 75 | padding_bar.classList.add('off'); |
| 76 | padding_bar.style.animationPlayState = "running"; |
| 77 | }, 500); |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | //progress updates (glue) |
| 82 | function updScanProgress(threadN, cidd, levels_done, levels_todo, label = undefined) { |