MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / setWasmLoadProgress

Function setWasmLoadProgress

wasm/wasm_loader.js:1–6  ·  view source on GitHub ↗
(proc)

Source from the content-addressed store, hash-verified

1var setWasmLoadProgress = function (proc) {
2 progressElement = document.getElementById("progress");
3 progressHolder = document.getElementById("progress-holder");
4 progressHolder.setAttribute('style', 'visibility: visible');
5 progressElement.setAttribute('style', 'width:' + Math.min(Math.max(proc, 0), 100) + "%");
6}
7
8var clearWasmLoadProgress = function () {
9 progressHolder = document.getElementById("progress-holder");

Callers 1

wasm_loader.jsFile · 0.85

Calls 2

minMethod · 0.80
maxMethod · 0.80

Tested by

no test coverage detected