mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 09:48:52 +00:00
Update script.js
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user