Spaces:
Build error
Build error
Download tecnicas/static/js/span-notification.js from chartManD/cata_system: direct link, hf CLI and curl.
- Browser
- Download file 496 Bytes
-
https://huggingface.co/spaces/chartManD/cata_system/resolve/main/tecnicas/static/js/span-notification.js
- Command line
-
hf download hf://spaces/chartManD/cata_system/tecnicas/static/js/span-notification.js
-
curl -L -o span-notification.js https://huggingface.co/spaces/chartManD/cata_system/resolve/main/tecnicas/static/js/span-notification.js
496 Bytes
| function spanNotifaction(messageError, isError = true, time = 4500) { | |
| const span = document.createElement("span"); | |
| span.classList.add("text-xl", "font-bold", "text-white"); | |
| span.textContent = messageError; | |
| const div = document.createElement("div"); | |
| div.classList.add("alert", isError ? "alert-error" : "alert-success"); | |
| div.appendChild(span); | |
| document.querySelector(".toast").append(div); | |
| setTimeout(() => { | |
| document.querySelector(".toast").removeChild(div); | |
| }, time); | |
| } | |