esthétisme
This commit is contained in:
25
table.html
25
table.html
@@ -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/>
|
||||||
|
|||||||
Reference in New Issue
Block a user