comparison src/chat.html.luan @ 62:bd3f16f7b8b7

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 19 Aug 2025 07:40:27 +0900
parents 27758f3b2d69
children 44bec62c49e2
comparison
equal deleted inserted replaced
61:85189076acfa 62:bd3f16f7b8b7
138 setTimeout(function(){ 138 setTimeout(function(){
139 let initialized = document.querySelector('[name=initialized]'); 139 let initialized = document.querySelector('[name=initialized]');
140 if( !initialized.value ) { 140 if( !initialized.value ) {
141 initialized.value = 'yes'; 141 initialized.value = 'yes';
142 //alert('init'); 142 //alert('init');
143 <% if is_owner then %>
143 document.querySelector('textarea').focus(); 144 document.querySelector('textarea').focus();
144 scrollToEnd(); 145 scrollToEnd();
146 <% end %>
145 } 147 }
146 },100); 148 },100);
147 </script> 149 </script>
148 </body> 150 </body>
149 </html> 151 </html>