We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 837ab16 commit e785acfCopy full SHA for e785acf
cindy/Day2-clock/main.js
@@ -33,8 +33,8 @@ const setDate = () => {
33
}
34
35
chickHead.addEventListener('click', () => {
36
- audio.src = `https://translate.google.com/translate_tts?ie=UTF-8&total=1&idx=0&textlen=32&client=tw-ob&q=${time.innerText}&tl=en-gb`
37
- audio.autoplay = 'autoplay'
+ audio.src = encodeURI(`https://translate.google.com/translate_tts?ie=UTF-8&total=1&idx=0&textlen=32&client=tw-ob&q=${time.innerText}&tl=en-gb`);
+ audio.autoplay = 'autoplay';
38
});
39
40
setInterval(setDate, 10);
0 commit comments