* Get the cleanedCounter and totalCounter value from the storage
()
| 50 | * Get the cleanedCounter and totalCounter value from the storage |
| 51 | */ |
| 52 | function 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. |
no outgoing calls
no test coverage detected