Update Frontend/scripts.js
Browse files- Frontend/scripts.js +2 -0
Frontend/scripts.js
CHANGED
@@ -47,6 +47,8 @@ function captureAndSend() {
|
|
47 |
`<img src="${data.emoji}" style="width:200px; border-radius:10px;">`;
|
48 |
document.getElementById("emotionText").textContent =
|
49 |
`Emotion: ${data.emotion}`;
|
|
|
|
|
50 |
|
51 |
// Show download button
|
52 |
const link = document.getElementById("downloadEmoji");
|
|
|
47 |
`<img src="${data.emoji}" style="width:200px; border-radius:10px;">`;
|
48 |
document.getElementById("emotionText").textContent =
|
49 |
`Emotion: ${data.emotion}`;
|
50 |
+
document.getElementById("emojiSound").play();
|
51 |
+
|
52 |
|
53 |
// Show download button
|
54 |
const link = document.getElementById("downloadEmoji");
|