-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
33 lines (32 loc) · 1.03 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
document.querySelector(".b1").addEventListener("click", (event) =>{
var audio = new Audio('b1.mp3');
audio.play();
});
document.querySelector(".b2").addEventListener("click", (event) =>{
var audio = new Audio('b2.mp3');
audio.play();
});
document.querySelector(".b3").addEventListener("click", (event) =>{
var audio = new Audio('b3.mp3');
audio.play();
});
document.querySelector(".b4").addEventListener("click", (event) =>{
var audio = new Audio('b4.mp3');
audio.play();
});
document.querySelector(".b5").addEventListener("click", (event) =>{
var audio = new Audio('b5.mp3');
audio.play();
});
document.querySelector(".b6").addEventListener("click", (event) =>{
var audio = new Audio('b6.mp3');
audio.play();
});
document.querySelector(".b7").addEventListener("click", (event) =>{
var audio = new Audio('b7.mp3');
audio.play();
});
document.querySelector(".b8").addEventListener("click", (event) =>{
var audio = new Audio('b5.mp3');
audio.play();
});