mirror of
https://github.com/zyphlar/organicmaps-locale-viewer.git
synced 2024-03-08 13:27:46 +00:00
Update index.html
This commit is contained in:
parent
842a66705e
commit
5f1c4bb58f
|
@ -222,6 +222,9 @@
|
||||||
msg.voice = voices[$("#voiceSelect").val()];
|
msg.voice = voices[$("#voiceSelect").val()];
|
||||||
synth.speak(msg);
|
synth.speak(msg);
|
||||||
});
|
});
|
||||||
|
if (window.hideTts) {
|
||||||
|
$(".playtts").hide();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -319,8 +322,8 @@
|
||||||
$("#voiceSelect").append('<option value="'+i+'" lang="'+voice.lang+'">'+voice.name+'</option>');
|
$("#voiceSelect").append('<option value="'+i+'" lang="'+voice.lang+'">'+voice.name+'</option>');
|
||||||
});
|
});
|
||||||
if (voices.length == 0) {
|
if (voices.length == 0) {
|
||||||
$("#voiceSelect").attr("disabled", "disabled");
|
$("#voiceSelect").attr("disabled", "disabled").after('<em>Try another browser to use TTS, or install TTS support for this browser.</em>');
|
||||||
$("#myvoice").text('Try another browser to use TTS').attr("disabled", "disabled");
|
window.hideTts = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
let params = new URLSearchParams(document.location.search);
|
let params = new URLSearchParams(document.location.search);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user