summaryrefslogtreecommitdiff
path: root/down/view/templ-index.php
diff options
context:
space:
mode:
Diffstat (limited to 'down/view/templ-index.php')
-rw-r--r--down/view/templ-index.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/down/view/templ-index.php b/down/view/templ-index.php
index bfa68ab..4186ed5 100644
--- a/down/view/templ-index.php
+++ b/down/view/templ-index.php
@@ -56,12 +56,12 @@
<label class="col-md-4 control-label" for="action">Check Type:</label>
<div class="col-md-4 text-left">
<label class="radio-inline" for="action-0">
- <input name="action" id="action-0" value="ping" checked="checked" type="radio">
- Ping
+ <input name="action" id="action-0" value="http" checked="checked" type="radio">
+ HTTP
</label>
<label class="radio-inline" for="action-1">
- <input name="action" id="action-1" value="http" type="radio">
- HTTP
+ <input name="action" id="action-1" value="ping" type="radio">
+ Ping
</label>
</div>
</div>
@@ -95,9 +95,12 @@
success: function( response ){
- if ( response.data == 1 ) {
+ if ( response.resp_code == 2 ) {
var type = "success";
var button= "btn-success";
+ } else if ( response.resp_code == 1){
+ var type= "warning";
+ var button= "btn-warning";
} else {
var type= "error";
var button= "btn-danger";
@@ -126,4 +129,4 @@
})
};
</script>
- <script defer src="../tools/static/sweet-alert.js"></script>
+ <script defer async src="../tools/static/sweet-alert.js"></script>