Update audio
This commit is contained in:
@@ -53,6 +53,8 @@
|
|||||||
answer1.addEventListener('click', answerQuestion);
|
answer1.addEventListener('click', answerQuestion);
|
||||||
answer2.addEventListener('click', answerQuestion);
|
answer2.addEventListener('click', answerQuestion);
|
||||||
|
|
||||||
|
var startAudio = new Audio('spielstarten.mp3');
|
||||||
|
|
||||||
//Start game
|
//Start game
|
||||||
function listener() {
|
function listener() {
|
||||||
var n = document.getElementById('n').value;
|
var n = document.getElementById('n').value;
|
||||||
@@ -66,6 +68,9 @@ function listener() {
|
|||||||
|
|
||||||
var right = document.getElementById('right');
|
var right = document.getElementById('right');
|
||||||
var total = document.getElementById('total');
|
var total = document.getElementById('total');
|
||||||
|
|
||||||
|
//play audio
|
||||||
|
startAudio.play();
|
||||||
}
|
}
|
||||||
|
|
||||||
//Start a new game
|
//Start a new game
|
||||||
|
BIN
uebung10/spielstarten.mp3
Normal file
BIN
uebung10/spielstarten.mp3
Normal file
Binary file not shown.
Reference in New Issue
Block a user