MCPcopy Index your code
hub / github.com/Cu-chi/cuchi_computer / Load

Function Load

nui/scripts/script.js:670–680  ·  view source on GitHub ↗
(load, text, timeout, callback)

Source from the content-addressed store, hash-verified

668 * @param {function} callback callback function that is triggered after the loading
669 */
670const Load = (load, text, timeout, callback) => {
671 if (load) {
672 document.getElementById("loader-text").innerText = text;
673 document.getElementById("loader-container").style.display = "flex";
674 document.getElementById("container").style.display = "none";
675 setTimeout(callback, timeout);
676 }
677 else {
678 document.getElementById("loader-container").style.display = "none";
679 }
680};
681
682/**
683 * Plays mp3 audio file

Callers 2

script.jsFile · 0.85
ShutdownComputerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected