Update script.js

This commit is contained in:
Mycroft
2022-04-26 16:39:17 +01:00
committed by GitHub
parent 8f0c6e8b25
commit 4ec365974e
+1 -4
View File
@@ -5,15 +5,12 @@ $(function () {
w.addEventListener('message', function(e) {
$(".text").text(e.data.message)
if (e.data.type === "info") {
console.log("info")
doc.getElementById("notifyInfo").style.display = "block";
Timeout()
} else if (e.data.type === "error") {
console.log("error")
doc.getElementById("notifyError").style.display = "block";
Timeout()
} else if (e.data.type === "success") {
console.log("succeeeess")
doc.getElementById("notifySuccess").style.display = "block";
Timeout()
}
@@ -26,4 +23,4 @@ $(function () {
}, e.data.length)
}
})
})
})