function showState(state) {
	if (state!=null) {
	   document.getElementById("pgn").innerHTML = state.pgn;
	   document.getElementById("fen").innerHTML = state.fen;	
	   if (state.debug) {
			document.getElementById("fendetails").open=state.debug
			document.getElementById("pgndetails").open=state.debug		
	   }
	}
	var pgn = game.pgn();
	// textarea
	document.getElementById("clientpgn").innerHTML = pgn;
	// input
	var boardfen = board.fen();
	document.getElementById("boardfen").innerHTML = boardfen;
	var gamefen = game.fen();
	document.getElementById("gamefen").innerHTML = gamefen;
}
// show the pgn and fen notation of the game
show the pgn and fen notation of the game
show the pgn and fen notation of the game
function showState(state) {
	if (state!=null) {
	   document.getElementById("pgn").innerHTML = state.pgn;
	   document.getElementById("fen").innerHTML = state.fen;	
	   if (state.debug) {
			document.getElementById("fendetails").open=state.debug
			document.getElementById("pgndetails").open=state.debug		
	   }
	}
	var pgn = game.pgn();
	document.getElementById("clientpgn").innerHTML = pgn;
	var boardfen = board.fen();
	document.getElementById("boardfen").innerHTML = boardfen;
	var gamefen = game.fen();
	document.getElementById("gamefen").innerHTML = gamefen;
}
function showState ( state ) { if ( state != null ) { document . getElementById ( "pgn" ) . innerHTML = state . pgn ; document . getElementById ( "fen" ) . innerHTML = state . fen ; if ( state . debug ) { document . getElementById ( "fendetails" ) . open = state . debug document . getElementById ( "pgndetails" ) . open = state . debug } } var pgn = game . pgn ( ) ; document . getElementById ( "clientpgn" ) . innerHTML = pgn ; var boardfen = board . fen ( ) ; document . getElementById ( "boardfen" ) . innerHTML = boardfen ; var gamefen = game . fen ( ) ; document . getElementById ( "gamefen" ) . innerHTML = gamefen ; }
show the pgn and fen notation of the game
show the pgn and fen notation of the game
// textarea // input