28 lines
384 B
Plaintext
28 lines
384 B
Plaintext
document.addEventListener("DOMContentLoaded",()=>{
|
|
|
|
loadResources()
|
|
loadDomains()
|
|
loadMapping()
|
|
loadCosts()
|
|
loadInfrastructure()
|
|
loadCancelled();
|
|
setInterval(()=>{
|
|
|
|
document.querySelectorAll("[id^='status-']").forEach(el=>{
|
|
|
|
const id = el.id.replace("status-","")
|
|
|
|
const resource = window.resources.find(r=>r.id==id)
|
|
|
|
if(resource){
|
|
checkServerStatus(resource)
|
|
}
|
|
|
|
})
|
|
|
|
},30000)
|
|
|
|
|
|
});
|
|
|