Mercurial Hosting > lang
diff src/site.js @ 28:99b71a377f2c
audio for textarea
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 02 Aug 2025 20:04:35 -0600 |
parents | f5425a3c1898 |
children | 505185272dd7 |
line wrap: on
line diff
--- a/src/site.js Fri Aug 01 20:08:13 2025 -0600 +++ b/src/site.js Sat Aug 02 20:04:35 2025 -0600 @@ -139,7 +139,7 @@ } //console.log(mdDiv.textContent); let lang = div.getAttribute('lang'); - text += `\n<p><audio controls preload=none src="/tts.mp3?lang=${lang}&text=${encodeURIComponent(mdDiv.textContent)}"></p>\n`; + text += `\n<p><audio controls preload=none src="/tts.mp3?lang=${lang}&text=${encodeURIComponent(mdDiv.textContent)}"></audio></p>\n`; } div.innerHTML = text; div.removeAttribute('markdown');