wip animation

This commit is contained in:
mudler
2024-04-06 20:37:09 +02:00
parent 215c3ddbf7
commit 015b26096f
2 changed files with 39 additions and 1 deletions

View File

@@ -204,7 +204,7 @@ func (a *App) Chat(m sse.Manager) func(w http.ResponseWriter, r *http.Request) {
m.Send(
sse.NewMessage(
chatDiv("...", "red") + "<script> document.getElementById('inputMessage').disabled = true;</script>",
`<div class="p-2 my-2 rounded bg-gray-100"><span class="loader"></span></div><script> document.getElementById('inputMessage').disabled = true;</script>`,
).WithEvent("message_status"))
}
}