mirror of
https://github.com/SirBlobby/Hoya26.git
synced 2026-02-04 11:44:34 -05:00
new sounds
This commit is contained in:
@@ -43,6 +43,12 @@
|
||||
};
|
||||
});
|
||||
|
||||
function playSuccessSound() {
|
||||
const audio = new Audio("/report completed.mp3");
|
||||
audio.volume = 0.5;
|
||||
audio.play().catch((e) => console.error("Error playing sound:", e));
|
||||
}
|
||||
|
||||
function handleFileUpload(event: Event) {
|
||||
const input = event.target as HTMLInputElement;
|
||||
const file = input.files?.[0];
|
||||
@@ -67,6 +73,7 @@
|
||||
analyzing = false;
|
||||
showResult = true;
|
||||
resultTranslateY = 0;
|
||||
playSuccessSound();
|
||||
typeText();
|
||||
}, 1200);
|
||||
};
|
||||
@@ -99,6 +106,7 @@
|
||||
analyzing = false;
|
||||
showResult = true;
|
||||
resultTranslateY = 0;
|
||||
playSuccessSound();
|
||||
typeText();
|
||||
}, 1200);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user