MCPcopy Create free account
hub / github.com/DFin/Neural-Network-Visualisation / setLoading

Function setLoading

assets/main.js:972–981  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

970 };
971
972 const setLoading = (value) => {
973 state.loading = Boolean(value);
974 if (state.loading) {
975 slider.disabled = true;
976 overlay.classList.add("timeline-overlay--loading");
977 } else {
978 slider.disabled = timelineSnapshots.length <= 1;
979 overlay.classList.remove("timeline-overlay--loading");
980 }
981 };
982
983 const applySnapshotChange = async (snapshot, safeIndex) => {
984 if (typeof options.onSnapshotChange !== "function") return;

Callers 1

applySnapshotChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected