Compare commits
No commits in common. "a6aab8f975177ac1c142e7a88ea430740f19ee0a" and "7a1143ca9bec03639c08fd9d4dbd55025c5214f1" have entirely different histories.
a6aab8f975
...
7a1143ca9b
@ -12,7 +12,7 @@
|
|||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h3 class="card-title">#(service["name"])</h3>
|
<h3 class="card-title">#(service["name"])</h3>
|
||||||
<div class="card-options">
|
<div class="card-options">
|
||||||
<span class="tag #if(service["url"]): btn-loading #endif">
|
<span class="tag">
|
||||||
Status
|
Status
|
||||||
<span id="#(service["name"])Status" class="tag-addon">Unavailable</span>
|
<span id="#(service["name"])Status" class="tag-addon">Unavailable</span>
|
||||||
</span>
|
</span>
|
||||||
@ -38,11 +38,9 @@
|
|||||||
var data = JSON.parse(this.response)
|
var data = JSON.parse(this.response)
|
||||||
if (data.down === "true" || parseInt(data.code) > 500 && parseInt(data.code) < 600 ) {
|
if (data.down === "true" || parseInt(data.code) > 500 && parseInt(data.code) < 600 ) {
|
||||||
document.getElementById('#(service["name"])Status').classList.add("tag-danger")
|
document.getElementById('#(service["name"])Status').classList.add("tag-danger")
|
||||||
document.getElementById('#(service["name"])Status').parentElement.classList.remove("btn-loading")
|
|
||||||
document.getElementById('#(service["name"])Status').innerHTML = "Offline"
|
document.getElementById('#(service["name"])Status').innerHTML = "Offline"
|
||||||
} else {
|
} else {
|
||||||
document.getElementById('#(service["name"])Status').classList.add("tag-success")
|
document.getElementById('#(service["name"])Status').classList.add("tag-success")
|
||||||
document.getElementById('#(service["name"])Status').parentElement.classList.remove("btn-loading")
|
|
||||||
document.getElementById('#(service["name"])Status').innerHTML = "Online"
|
document.getElementById('#(service["name"])Status').innerHTML = "Online"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user