esthétisme

This commit is contained in:
fabien
2024-09-12 20:53:18 +02:00
parent b7e3ebae22
commit 874955b86e

View File

@@ -63,10 +63,10 @@
while(tables < maxgameplayed && essai < 10) { while(tables < maxgameplayed && essai < 10) {
essai++; essai++;
selectedGame = findgame(playersAvailableInSession, gameThisSession); selectedGame = findgame(playersAvailableInSession, gameThisSession);
showDebug( "try for " +selectedGame +", players disponibles "+playersAvailableInSession.length ); //showDebug( "try for " +selectedGame +", players disponibles "+playersAvailableInSession.length );
possibleplayers = chooseplayers(playersAvailableInSession, selectedGame); possibleplayers = chooseplayers(playersAvailableInSession, selectedGame);
showDebug ("players dispo " +possibleplayers.length + " <br/>" ); // showDebug ("players dispo " +possibleplayers.length + " <br/>" );
//youpi , une table faite //youpi , une table faite
if(possibleplayers.length >= playerAtTable ) { if(possibleplayers.length >= playerAtTable ) {
@@ -205,17 +205,18 @@
show ("<span style='color:green' >"+ text +"</span><br/>"); show ("<span style='color:green' >"+ text +"</span><br/>");
} }
function showWarning(text){ function showWarning(text){
show ("<span style='color:red' >"+ text +"</span><br/>"); show ("<span style='color:red' >"+ text +"</span><br/>");
} }
function showDebug(text){
show ("<span style='color:gray' >"+ text +"</span><br/>");
}
function show(text) {
elem = document.getElementById("results");
elem.insertAdjacentHTML( 'beforeend', text);
}
function showDebug(text){
show ("<span style='color:gray' >"+ text +"</span><br/>");
}
function show(text) {
elem = document.getElementById("results");
elem.insertAdjacentHTML( 'beforeend', text);
}
</script> </script>
<div id="param" style="float:left;width:50%; text-align:center"> <div id="param" style="float:left;width:50%; text-align:center">
Nombres de jouers (nom inventés) <input id="players" name="players" placeholder="nombre de joueurs" type ="text"/><br/> Nombres de jouers (nom inventés) <input id="players" name="players" placeholder="nombre de joueurs" type ="text"/><br/>