diff --git a/.gitignore b/.gitignore index 7d975d8f8..093b530a5 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,5 @@ logs/* **/logs .idea/ *.iml -remote-sync \ No newline at end of file +remote-sync +replay \ No newline at end of file diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/fanfare_x.mp3 b/gemp-lotr/gemp-lotr-async/src/main/web/fanfare_x.mp3 new file mode 100644 index 000000000..c5a474574 Binary files /dev/null and b/gemp-lotr/gemp-lotr-async/src/main/web/fanfare_x.mp3 differ diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/hall.html b/gemp-lotr/gemp-lotr-async/src/main/web/hall.html index 584be9368..32e74ca04 100644 --- a/gemp-lotr/gemp-lotr-async/src/main/web/hall.html +++ b/gemp-lotr/gemp-lotr-async/src/main/web/hall.html @@ -42,6 +42,8 @@ + + diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/hallUi.js b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/hallUi.js index 2e7b04024..0e1f77943 100644 --- a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/hallUi.js +++ b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-022/hallUi.js @@ -397,6 +397,11 @@ var GempLotrHallUI = Class.extend({ .css({borderTopColor:"#000000", borderLeftColor:"#000000", borderBottomColor:"#000000", borderRightColor:"#000000"}) .animate({borderTopColor:"#ffffff", borderLeftColor:"#ffffff", borderBottomColor:"#ffffff", borderRightColor:"#ffffff"}, "fast"); }, + + PlaySound: function(soundObj) { + var myAudio = document.getElementById(soundObj); + myAudio.play(); + }, processHall:function (xml) { var that = this; @@ -678,12 +683,14 @@ var GempLotrHallUI = Class.extend({ window.open("/gemp-lotr/game.html?gameId=" + waitingGameId + participantIdAppend, "_blank"); } if (games.length > 0) { - var soundPlay = $(""); - this.tablesDiv.append(soundPlay); - setTimeout( - function() { - soundPlay.remove(); - }, 5000); + // var soundPlay = $(""); + // this.tablesDiv.append(soundPlay); + // setTimeout( + // function() { + // soundPlay.remove(); + // }, 5000); + + this.PlaySound("gamestart"); } if (!this.supportedFormatsInitialized) {