main.py
CHANGED
@@ -99,8 +99,13 @@ def index():
|
|
99 |
Style(style),
|
100 |
Script(src="https://unpkg.com/[email protected]/dist/leaflet.js"),
|
101 |
#Body(onload='load()'),
|
102 |
-
|
103 |
-
|
|
|
|
|
|
|
|
|
|
|
104 |
Script(js)
|
105 |
)
|
106 |
|
|
|
99 |
Style(style),
|
100 |
Script(src="https://unpkg.com/[email protected]/dist/leaflet.js"),
|
101 |
#Body(onload='load()'),
|
102 |
+
Form(hx_post=send, hx_target="#chatlist", hx_swap="beforeend")(
|
103 |
+
Div(id="chatlist", cls="chat-box h-[73vh] overflow-y-auto"),
|
104 |
+
Div(id='mapid'),
|
105 |
+
Div(cls="flex space-x-2 mt-2")(
|
106 |
+
Group(ChatInput(), Button("Send", cls="btn btn-primary"))
|
107 |
+
)
|
108 |
+
),
|
109 |
Script(js)
|
110 |
)
|
111 |
|