fehlermeldungen gebaut
This commit is contained in:
@@ -77,3 +77,25 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
function showError(msg) {
|
||||
|
||||
const div = document.createElement("div")
|
||||
|
||||
div.innerText = msg
|
||||
|
||||
div.style.position = "fixed"
|
||||
div.style.bottom = "20px"
|
||||
div.style.right = "20px"
|
||||
div.style.background = "#dc2626"
|
||||
div.style.color = "white"
|
||||
div.style.padding = "10px 15px"
|
||||
div.style.borderRadius = "6px"
|
||||
div.style.zIndex = 9999
|
||||
|
||||
document.body.appendChild(div)
|
||||
|
||||
setTimeout(() => {
|
||||
div.remove()
|
||||
}, 3000)
|
||||
}
|
||||
Reference in New Issue
Block a user