about summary refs log tree commit diff
path: root/aisearch/src/web/templates/partials/response.html
diff options
context:
space:
mode:
Diffstat (limited to 'aisearch/src/web/templates/partials/response.html')
-rw-r--r--aisearch/src/web/templates/partials/response.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/aisearch/src/web/templates/partials/response.html b/aisearch/src/web/templates/partials/response.html
new file mode 100644
index 0000000..cc8a0fd
--- /dev/null
+++ b/aisearch/src/web/templates/partials/response.html
@@ -0,0 +1,12 @@
+<div class="message message-ai">
+    <div class="avatar">AI</div>
+    <div class="message-content">
+        {% include "partials/response_body.html" %}
+    </div>
+    <button type="button" class="copy-btn"
+            _="on click
+                writeText(my previousElementSibling's innerText) on navigator.clipboard
+                put 'Copied!' into me
+                wait 1.5s
+                put 'Copy' into me">Copy</button>
+</div>