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

Function count

Pokedex/script.js:18–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16let int = setInterval(count, 0);
17
18function count() {
19 load++;
20 if (load > 99)
21 clearInterval(int);
22 bg.style.filter = `blur(${scale(load, 0, 100, 100, 0)}px)`;
23 loader.innerHTML = `${load}%`;
24 loader.style.opacity = scale(load, 0, 100, 100, 0);
25}
26
27const scale = (num, in_min, in_max, out_min, out_max) => {
28 return ((num - in_min) * (out_max - out_min)) / (in_max - in_min) + out_min

Callers 15

encodePNGMethod · 0.85
binarizeMethod · 0.85
tcpdfBarcodeArrayMethod · 0.85
buildCacheMethod · 0.85
dumpMaskMethod · 0.85
getEccSpecMethod · 0.85
imageMethod · 0.85
__constructMethod · 0.85
sizeMethod · 0.85
maskMethod · 0.85
encodePNGMethod · 0.85
imageMethod · 0.85

Calls 1

scaleFunction · 0.85

Tested by 1

getEccSpecMethod · 0.68