From bc98c413594ae57770c20f025ee4b3d6e60eee0a Mon Sep 17 00:00:00 2001 From: Will Bradley Date: Sun, 27 Aug 2023 18:18:47 -0700 Subject: [PATCH] Rework to directly edit strings with complexity --- index.html | 551 ++++++++++++++++++++++++++++++++--------------------- 1 file changed, 330 insertions(+), 221 deletions(-) diff --git a/index.html b/index.html index 404612b..222f869 100644 --- a/index.html +++ b/index.html @@ -2,239 +2,339 @@ + + + @@ -326,7 +431,7 @@ const synth = window.speechSynthesis; var voices; - $(document).ready(function(){ + function loadTts(){ voices = synth.getVoices(); $.each(voices, function(i, voice){ $("#voiceSelect").append(''); @@ -377,17 +482,21 @@ } $("#localeSelect").change(function(){ - params.set('lang', $("#localeSelect").val()); - document.location.search = params.toString(); + showData(); + // params.set('lang', $("#localeSelect").val()); + // document.location.search = params.toString(); }); $("#voiceSelect").change(function(){ - params.set('tts', $("#voiceSelect").val()); - document.location.search = params.toString(); + loadTts(); + // params.set('tts', $("#voiceSelect").val()); + // document.location.search = params.toString(); }); loadLocale(); - }); + } + + $(document).ready(function(){ loadTts(); });