Обновил айди статусов

This commit is contained in:
2021-01-17 02:01:03 +03:00
parent cf4d73f6ab
commit 12858d8d87
4 changed files with 27 additions and 17 deletions

View File

@@ -1,6 +1,4 @@
function showHint() {
console.log(document.getElementById("hint-div").style.display);
if (document.getElementById("hint-div").style.display == "block") {
document.getElementById("hint-div").style.display = "none";
document.getElementById("hint-link").innerHTML = "Что это?";
@@ -10,4 +8,11 @@ function showHint() {
document.getElementById("hint-link").innerHTML = "Понял";
document.getElementById("hint-link").style.color = "black";
}
}
var xhttp = new XMLHttpRequest();
function send() {
xhttp.open("GET", "http://status.anatolykopyl.ru:5001/update", true);
xhttp.send();
}