mirror of
https://github.com/milk-net/milk-net.github.io.git
synced 2025-04-20 14:13:42 -05:00
Update script.js
This commit is contained in:
parent
afeb043b42
commit
1d37ff53d3
1 changed files with 6 additions and 6 deletions
|
@ -9,12 +9,12 @@ function formatTime(ms) {
|
||||||
|
|
||||||
function getRandomAlarmSound() {
|
function getRandomAlarmSound() {
|
||||||
const sounds = [
|
const sounds = [
|
||||||
'alarm.mp3',
|
'alarm.wav',
|
||||||
'alarm2.mp3',
|
'alarm2.wav',
|
||||||
'alarm3.mp3',
|
'alarm3.wav',
|
||||||
'alarm4.mp3',
|
'alarm4.wav',
|
||||||
'alarm5.mp3',
|
'alarm5.wav',
|
||||||
'alarm6.mp3'
|
'alarm6.wav'
|
||||||
];
|
];
|
||||||
const randomIndex = Math.floor(Math.random() * sounds.length);
|
const randomIndex = Math.floor(Math.random() * sounds.length);
|
||||||
return sounds[randomIndex];
|
return sounds[randomIndex];
|
||||||
|
|
Loading…
Add table
Reference in a new issue