Skip to content

Commit 830e66e

Browse files
committed
music source issue for github pages
1 parent 64d60de commit 830e66e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

function.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ function selectionSort() {
7474
.attr("x", function (d) {
7575
return bandScale(d);
7676
});
77-
var swooshAudio = new Audio("./sound-effects/swoosh.mp3");
77+
var swooshAudio = new Audio("sound-effects/swoosh.mp3");
7878
swooshAudio.play();
7979
}
8080

8181
await timer(1000); // then the created Promise can be awaited
8282
}
8383
svg.selectAll("rect").style("fill", "green");
84-
var completeAudio = new Audio("./sound-effects/complete.mp3");
84+
var completeAudio = new Audio("sound-effects/complete.mp3");
8585
completeAudio.play();
8686
}
8787
sort();

0 commit comments

Comments
 (0)