Skip to content

Commit 216af0c

Browse files
committed
github pages issue fixed
1 parent 830e66e commit 216af0c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

function.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,18 @@ 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(
78+
"/algorithm-visualizer/sound-effects/swoosh.mp3"
79+
);
7880
swooshAudio.play();
7981
}
8082

8183
await timer(1000); // then the created Promise can be awaited
8284
}
8385
svg.selectAll("rect").style("fill", "green");
84-
var completeAudio = new Audio("sound-effects/complete.mp3");
86+
var completeAudio = new Audio(
87+
"/algorithm-visualizer/sound-effects/complete.mp3"
88+
);
8589
completeAudio.play();
8690
}
8791
sort();

0 commit comments

Comments
 (0)