dev
This commit is contained in:
parent
8471ee3649
commit
3c53b6641d
@ -68,7 +68,7 @@ function addText(text) {
|
|||||||
contentDiv.appendChild(p);
|
contentDiv.appendChild(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
function playAudio(audioUrl) {
|
async function playAudio(audioUrl) {
|
||||||
const audio = new Audio(audioUrl);
|
const audio = new Audio(audioUrl);
|
||||||
audio.play()
|
audio.play()
|
||||||
await delay(5000);
|
await delay(5000);
|
||||||
@ -126,9 +126,9 @@ async function widgetView() {
|
|||||||
addImage(widget.ImageUrl)
|
addImage(widget.ImageUrl)
|
||||||
}
|
}
|
||||||
if (widget.AudioUrl) {
|
if (widget.AudioUrl) {
|
||||||
playAudio(widget.AudioUrl)
|
await playAudio(widget.AudioUrl)
|
||||||
}
|
}
|
||||||
|
playSpeech(text)
|
||||||
|
|
||||||
addText(donat.Text + " " + donat.Amount)
|
addText(donat.Text + " " + donat.Amount)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user