styling for alert
This commit is contained in:
parent
2362fd74d8
commit
0795cd3b95
3 changed files with 13 additions and 2 deletions
|
|
@ -53,5 +53,5 @@ document.getElementById('contact-form').addEventListener('submit', async functio
|
|||
success = false
|
||||
}
|
||||
const thanksMsg = success ? 'Thanks for your message 謝謝您的訊息' : 'Failed to send message. Try again later.'
|
||||
document.getElementById('contact-container').innerHTML = thanksMsg
|
||||
document.getElementById('contact-container').innerHTML = `<div class="alert">${thanksMsg}</div>`
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue