MCPcopy Index your code
hub / github.com/ClearURLs/Addon / changeStatistics

Function changeStatistics

core_js/popup.js:52–63  ·  view source on GitHub ↗

* Get the cleanedCounter and totalCounter value from the storage

()

Source from the content-addressed store, hash-verified

50* Get the cleanedCounter and totalCounter value from the storage
51*/
52function changeStatistics()
53{
54 globalPercentage = ((cleanedCounter/totalCounter)*100).toFixed(3);
55
56 if(isNaN(Number(globalPercentage))) globalPercentage = 0;
57
58 element.textContent = cleanedCounter.toLocaleString();
59 elGlobalPercentage.textContent = globalPercentage+"%";
60 elProgressbar_blocked.style.width = globalPercentage+'%';
61 elProgressbar_non_blocked.style.width = (100-globalPercentage)+'%';
62 elTotal.textContent = totalCounter.toLocaleString();
63}
64
65/**
66* Set the value for the hashStatus on startUp.

Callers 2

initFunction · 0.85
resetGlobalCounterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected