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

Function setScrolled

Percentage Scrolled/script.js:26–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25// This function uses a for loop for individual progress bars. You can modify it so that it applies to the whole skill section at once
26function setScrolled() {
27
28 var scrolled = Math.floor((window.scrollY/(docHeight-windowHeight))*100);
29
30 scrolledBar.innerText = scrolled;
31
32}
33
34
35

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected