MCPcopy Create free account
hub / github.com/Eltaurus-Lt/CourseDump2022 / removeScanBar

Function removeScanBar

progressbars.js:56–79  ·  view source on GitHub ↗
(threadN)

Source from the content-addressed store, hash-verified

54}
55
56function 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)
82function updScanProgress(threadN, cidd, levels_done, levels_todo, label = undefined) {

Callers 1

scanThreadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected