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(); });