We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38bd421 commit 8c5ef13Copy full SHA for 8c5ef13
index.html
@@ -9,6 +9,11 @@
9
</head>
10
<body onload="start();">
11
<svg id="game"></svg>
12
+
13
+ <audio id="put">
14
+ <source src="sounds/put.ogg" type="audio/ogg">
15
+ <source src="sounds/put.mp3" type="audio/mpeg">
16
+ </audio>
17
</body>
18
19
</html>
js/script.js
@@ -146,7 +146,9 @@ function put(circle){
146
if(change(circle.target.id)){
147
var tmp = actualPlayer;
148
actualPlayer=otPlayer;
149
- otPlayer = tmp;
+ otPlayer = tmp;
150
+ document.getElementById("put").play();
151
152
}
153
154
actualPlayer.inGame();
sounds/put.mp3
2.34 KB
sounds/put.ogg
4.55 KB
0 commit comments