(categ = -1)
| 182 | |
| 183 | // function(){clears rank} |
| 184 | function clrRnk(categ = -1) { |
| 185 | let rnkListElement = document.querySelector('#rnkList'); |
| 186 | |
| 187 | // removing all the list items |
| 188 | while (rnkListElement.firstElementChild !== null) |
| 189 | rnkListElement.firstElementChild.remove(); |
| 190 | |
| 191 | // category points clearing |
| 192 | if (categ !== -1) { |
| 193 | for (let i = 0; i < rnkLen[categ]; i++) { |
| 194 | pointsDict[rnkList[i][categ]][categ] = 0; |
| 195 | } |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | // function(){displays rank} |
| 200 | function displayRnk() { |
no test coverage detected