(load, text, timeout, callback)
| 668 | * @param {function} callback callback function that is triggered after the loading |
| 669 | */ |
| 670 | const 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 |
no outgoing calls
no test coverage detected