Add web support

This commit is contained in:
2024-11-12 13:28:14 +01:00
parent ebad22fbee
commit 73ff32aa69
10 changed files with 231 additions and 5 deletions

12
static/script.js Normal file
View File

@@ -0,0 +1,12 @@
function scrollToBottom() {
console.log("Scrolling");
window.scrollTo(0, document.body.scrollHeight);
}
window.onload = function() {
scrollToBottom();
htmx.config.allowNestedOobSwaps = false
htmx.config.wsReconnectDelay = function(retryCount) {
return 250;
}
}

26
static/style.css Normal file
View File

@@ -0,0 +1,26 @@
body {
background-color: #e4faff;
}
.message {
border: 1px solid #000;
margin: 5px 0;
padding: 16px;
}
.content {
white-space: pre-wrap;
}
.content-box {
width: 80%;
margin: 0 auto;
}
.message-box {
margin: 64px 0 64px;
}
.message-input {
width: 100%;
}