We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d93e999 commit 95354ddCopy full SHA for 95354dd
howler/howler.js
@@ -0,0 +1,25 @@
1
+//Howler loads the first sound file compatible with the browser. Stored in src array.
2
+<!DOCTYPE html>
3
+<html>
4
+<head>
5
+<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.0.0/howler.core.min.js">
6
+
7
+var sound = new Howl({
8
+ urls: ['sound.mp3']
9
+});
10
11
+var soundTwo = new Howl({
12
+ urls: ['soundTwo.mp3']
13
14
15
+function onKeyDown(event){
16
+ sound.play();
17
+};
18
19
+function onKeyUp(event){
20
+ soundTwo.play();
21
+}
22
+</script>
23
+</head>
24
+</html>
25
0 commit comments