comparison src/chat.js @ 12:2d4b3f003ec2

tts
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 24 Jul 2025 22:14:49 -0600
parents 003a90ce72d7
children 65bd7e245c63
comparison
equal deleted inserted replaced
11:003a90ce72d7 12:2d4b3f003ec2
50 let scroll = aiDialog.querySelector('[scroll]'); 50 let scroll = aiDialog.querySelector('[scroll]');
51 setTimeout(function(){ 51 setTimeout(function(){
52 scroll.scrollTo(0,scroll.scrollHeight); 52 scroll.scrollTo(0,scroll.scrollHeight);
53 }); 53 });
54 */ 54 */
55 let audios = document.querySelectorAll('audio');
56 if( audios.length >= 1 ) {
57 let audio = audios[audios.length-1];
58 audio.play();
59 }
55 } 60 }
56 61
57 const isMobile = 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0; 62 const isMobile = 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
58 63
59 function textareaKey(event) { 64 function textareaKey(event) {