Spaces:
Paused
Paused
BinaryONe
commited on
Commit
·
a5342a3
1
Parent(s):
6083e54
Changes
Browse files
WebSSH/templates/index.html
CHANGED
|
@@ -36,7 +36,7 @@
|
|
| 36 |
<body>
|
| 37 |
<div class="container">
|
| 38 |
<div id="error-popup" class="error-popup">
|
| 39 |
-
<i class="fas fa-exclamation-circle"></i>
|
| 40 |
</div>
|
| 41 |
|
| 42 |
<div class="user-container">
|
|
@@ -71,10 +71,9 @@
|
|
| 71 |
body: JSON.stringify({ command: command })
|
| 72 |
})
|
| 73 |
.then(response => {
|
| 74 |
-
console.log(response)
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
}
|
| 78 |
return response.text();
|
| 79 |
})
|
| 80 |
}
|
|
@@ -89,6 +88,7 @@
|
|
| 89 |
},
|
| 90 |
body: JSON.stringify({ username: username, password: password })
|
| 91 |
})
|
|
|
|
| 92 |
.then(response => {
|
| 93 |
console.log(response)
|
| 94 |
if (!response.ok) {
|
|
@@ -109,7 +109,7 @@
|
|
| 109 |
.catch(error => {
|
| 110 |
console.error('There was a problem with the fetch operation:', error);
|
| 111 |
document.getElementById('error-popup').style.display = 'block';
|
| 112 |
-
})
|
| 113 |
};
|
| 114 |
</script>
|
| 115 |
</div>
|
|
|
|
| 36 |
<body>
|
| 37 |
<div class="container">
|
| 38 |
<div id="error-popup" class="error-popup">
|
| 39 |
+
<i class="fas fa-exclamation-circle"></i>
|
| 40 |
</div>
|
| 41 |
|
| 42 |
<div class="user-container">
|
|
|
|
| 71 |
body: JSON.stringify({ command: command })
|
| 72 |
})
|
| 73 |
.then(response => {
|
| 74 |
+
console.log("Response :",response)
|
| 75 |
+
document.getElementById('error-popup').style.display = 'block';
|
| 76 |
+
document.getElementById('error-popup').innerHTML = response;
|
|
|
|
| 77 |
return response.text();
|
| 78 |
})
|
| 79 |
}
|
|
|
|
| 88 |
},
|
| 89 |
body: JSON.stringify({ username: username, password: password })
|
| 90 |
})
|
| 91 |
+
/*
|
| 92 |
.then(response => {
|
| 93 |
console.log(response)
|
| 94 |
if (!response.ok) {
|
|
|
|
| 109 |
.catch(error => {
|
| 110 |
console.error('There was a problem with the fetch operation:', error);
|
| 111 |
document.getElementById('error-popup').style.display = 'block';
|
| 112 |
+
});*/
|
| 113 |
};
|
| 114 |
</script>
|
| 115 |
</div>
|