This repository has been archived on 2023-08-24. You can view files and clone it, but cannot push or open issues or pull requests.
2023-01-19 16:53:18 +00:00
|
|
|
// Toggle Loading Box
|
2023-01-18 01:25:01 +00:00
|
|
|
async function clearLoading() {
|
|
|
|
document.getElementById("loading").style = "display: none;";
|
|
|
|
}
|
|
|
|
|
|
|
|
async function showLoading() {
|
|
|
|
document.getElementById("loading").style = "display: block;";
|
2023-01-19 16:53:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Enable delays
|
|
|
|
const delay = ms => new Promise(res => setTimeout(res, ms));
|
|
|
|
|
|
|
|
// Log Helper
|
|
|
|
function log(msg) {
|
|
|
|
var time = new Date().toISOString();
|
|
|
|
console.log(`${time} - ${msg}`)
|
2023-01-18 01:25:01 +00:00
|
|
|
}
|