Correct bug in javascript diplay
This commit is contained in:
parent
60db148412
commit
5b748e9531
@ -45,7 +45,7 @@ var set_atout = function(){
|
|||||||
if (jeu['turn']<-4 && (jeu['turn']+jeu['first_player']+8)%4 == jeu['nr']){
|
if (jeu['turn']<-4 && (jeu['turn']+jeu['first_player']+8)%4 == jeu['nr']){
|
||||||
$('#preneur').html(`<input type="submit" onclick="javascript:choixcouleur('${coulprop[1]}')" value="Prendre" />`);
|
$('#preneur').html(`<input type="submit" onclick="javascript:choixcouleur('${coulprop[1]}')" value="Prendre" />`);
|
||||||
$('#prispar').html(`<input type="submit" onclick="javascript:choixcouleur(null)" value="Passer" />`);
|
$('#prispar').html(`<input type="submit" onclick="javascript:choixcouleur(null)" value="Passer" />`);
|
||||||
}else if((jeu['turn']+jeu['first_player']+8)%4 == jeu['nr']){
|
}else if((jeu['turn']+jeu['first_player']+8)%4 == jeu['nr'] && jeu['turn']<0){
|
||||||
$('#preneur').html(`<input type="submit" onclick="javascript:choixcouleur('P')" value="Pique" />
|
$('#preneur').html(`<input type="submit" onclick="javascript:choixcouleur('P')" value="Pique" />
|
||||||
<input type="submit" onclick="javascript:choixcouleur('C')" value="Coeur" />
|
<input type="submit" onclick="javascript:choixcouleur('C')" value="Coeur" />
|
||||||
<br />
|
<br />
|
||||||
@ -159,7 +159,7 @@ var set_current_player = function(){
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$('#suivant').show();
|
$('#suivant').hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user