MCPcopy Index your code
hub / github.com/WebDevSimplified/wordle-clone / showAlert

Function showAlert

script.js:15430–15443  ·  view source on GitHub ↗
(message, duration = 1000)

Source from the content-addressed store, hash-verified

15428}
15429
15430function showAlert(message, duration = 1000) {
15431 const alert = document.createElement("div")
15432 alert.textContent = message
15433 alert.classList.add("alert")
15434 alertContainer.prepend(alert)
15435 if (duration == null) return
15436
15437 setTimeout(() => {
15438 alert.classList.add("hide")
15439 alert.addEventListener("transitionend", () => {
15440 alert.remove()
15441 })
15442 }, duration)
15443}
15444
15445function shakeTiles(tiles) {
15446 tiles.forEach(tile => {

Callers 2

submitGuessFunction · 0.85
checkWinLoseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected