Mercurial Hosting > lang
comparison src/chat.html.luan @ 28:99b71a377f2c
audio for textarea
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 02 Aug 2025 20:04:35 -0600 |
parents | 176a182c02cf |
children | 505185272dd7 |
comparison
equal
deleted
inserted
replaced
27:176a182c02cf | 28:99b71a377f2c |
---|---|
27 <style> | 27 <style> |
28 @import "/chat.css?s=<%=started%>"; | 28 @import "/chat.css?s=<%=started%>"; |
29 </style> | 29 </style> |
30 <script> | 30 <script> |
31 let chatId = <%= chat.id %>; | 31 let chatId = <%= chat.id %>; |
32 let lang = '<%= chat.language_region %>'; | |
32 </script> | 33 </script> |
33 <script src="/chat.js?s=<%=started%>"></script> | 34 <script src="/chat.js?s=<%=started%>"></script> |
34 </head> | 35 </head> |
35 <body> | 36 <body> |
36 <% header() %> | 37 <% header() %> |
50 <% chat.output_messages_html() %> | 51 <% chat.output_messages_html() %> |
51 </div> | 52 </div> |
52 <div ask> | 53 <div ask> |
53 <textarea autofocus oninput="fixTextarea(event.target)" onkeydown="textareaKey(event)"></textarea> | 54 <textarea autofocus oninput="fixTextarea(event.target)" onkeydown="textareaKey(event)"></textarea> |
54 <div buttons> | 55 <div buttons> |
56 <audio controls preload=none></audio> | |
55 <button record onclick="toggleRecording()">Record</button> | 57 <button record onclick="toggleRecording()">Record</button> |
56 <button onclick="askAi()" title="Send"><img src="/images/send.svg"></button> | 58 <button onclick="askAi()" title="Send"><img src="/images/send.svg"></button> |
57 </div> | 59 </div> |
58 </div> | 60 </div> |
59 </div> | 61 </div> |