forked from MoeDevs1/Nasa-Hackathon-Ocean-Garden
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
24 lines (24 loc) · 759 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>
<audio id="audio" controls>
<source src="audio/bubble-sound.wav" type="audio/wav">
</audio>
<canvas id="canvas"></canvas>
<script src="bubbles.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
var audio = document.getElementById("audio");
setTimeout(function() {
audio.play();
}, 5000); // Delay audio playback for 5 seconds (5000 milliseconds)
});
</script>
</body>
</html>