1
0
mirror of https://github.com/2ec0b4/kaamelott-soundboard.git synced 2025-12-09 08:03:24 +00:00

Permet la lecture des sons

This commit is contained in:
Antoine
2016-04-10 14:00:52 +02:00
parent 3d116d0b43
commit 342ba56bf4
3 changed files with 30 additions and 5 deletions

View File

@@ -11,6 +11,11 @@ define(
title: "",
character: "",
file: ""
},
play: function() {
var audio = new Audio('sounds/'+this.attributes.file);
return audio.play();
}
});