MCPcopy Create free account
hub / github.com/codemistic/Web-Development / clrRnk

Function clrRnk

Facemash/js_fm.js:184–197  ·  view source on GitHub ↗
(categ = -1)

Source from the content-addressed store, hash-verified

182
183// function(){clears rank}
184function 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}
200function displayRnk() {

Callers 2

displayRnkFunction · 0.85
js_fm.jsFile · 0.85

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected