diff --git a/static/belote.css b/static/belote.css index 5391e2c..d8bea43 100644 --- a/static/belote.css +++ b/static/belote.css @@ -409,3 +409,13 @@ fieldset.fieldset { table.tablelogin td{ padding: 10px 0px 10px 0px; +} + +#info { + position: absolute; + top: 0px; + left: 280px; + padding:3px; + text-align: center; + background: #FFC577; +} diff --git a/static/game_script.js b/static/game_script.js index 540d664..a6ce3da 100644 --- a/static/game_script.js +++ b/static/game_script.js @@ -129,6 +129,11 @@ var set_derpli = function(){ $('#der-pli-'+i).html(``); } } + else if(jeu['turn']<0){ + for(i=0;i<4;i++){ + $('#der-pli-'+i).html(); + } + } } var set_players = function(){ @@ -173,7 +178,8 @@ var set_current_player = function(){ $(document).ready(function() { socket = io(window.location.pathname); -$('#suivant').hide() +$('#suivant').hide(); +$('#info').hide(); set_points(); set_atout(); set_jeu(); @@ -208,6 +214,7 @@ socket.on('restart', function(data) { set_players(); set_current_player(); socket.emit('monjeu', {}); + $('#info').fadeIn().delay(2000).fadeOut() }); socket.on('choose_color', function(data){ diff --git a/templates/game_zone_jeu.html b/templates/game_zone_jeu.html index 4c0d311..18a7feb 100644 --- a/templates/game_zone_jeu.html +++ b/templates/game_zone_jeu.html @@ -8,6 +8,7 @@
+