diff --git a/table.html b/table.html index 9093fae..5d466ba 100644 --- a/table.html +++ b/table.html @@ -63,10 +63,10 @@ while(tables < maxgameplayed && essai < 10) { essai++; selectedGame = findgame(playersAvailableInSession, gameThisSession); - showDebug( "try for " +selectedGame +", players disponibles "+playersAvailableInSession.length ); + //showDebug( "try for " +selectedGame +", players disponibles "+playersAvailableInSession.length ); possibleplayers = chooseplayers(playersAvailableInSession, selectedGame); - showDebug ("players dispo " +possibleplayers.length + "
" ); + // showDebug ("players dispo " +possibleplayers.length + "
" ); //youpi , une table faite if(possibleplayers.length >= playerAtTable ) { @@ -205,17 +205,18 @@ show (""+ text +"
"); } - function showWarning(text){ - show (""+ text +"
"); - } + function showWarning(text){ + show (""+ text +"
"); + } + + function showDebug(text){ + show (""+ text +"
"); + } + function show(text) { + elem = document.getElementById("results"); + elem.insertAdjacentHTML( 'beforeend', text); + } - function showDebug(text){ - show (""+ text +"
"); - } - function show(text) { - elem = document.getElementById("results"); - elem.insertAdjacentHTML( 'beforeend', text); - }
Nombres de jouers (nom inventés)