Add web support
This commit is contained in:
12
static/script.js
Normal file
12
static/script.js
Normal 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
26
static/style.css
Normal 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%;
|
||||
}
|
||||
Reference in New Issue
Block a user