pgn4web testing thread
Posted: Thu Mar 08, 2012 8:26 am
This thread is for reports of strange behavior, bugs or satisfaction while testing prototype pgn4web software. Have it it.
Good point, you might want to replace board.html with the updated one atJeremy Bernstein wrote:My first comment (other than that I miss the coords and side-to-move indicators and intend to reimplement them) is that the variations should be colored differently from comments, so that it's easy to see at a glance that they are "live".
Got it!pgn4web wrote:Good point, you might want to replace board.html with the updated one atJeremy Bernstein wrote:My first comment (other than that I miss the coords and side-to-move indicators and intend to reimplement them) is that the variations should be colored differently from comments, so that it's easy to see at a glance that they are "live".
http://pgn4web.devio.us/pgn4web/board.html
This allows setting a separate color for variations, see for example:
http://tinyurl.com/7z9m7e5
You have to change the pgn tag definition, adding to board.html the parameter &fvch=fvch=FF0000 (replacing fvch=FF0000 with the color of your choice).
For "technical reasons" you will see that only the variation moves are colored differently, while the move numbers still have the comments color (while for the main line is slightly different), hope this is acceptable.
Code: Select all
&fhs=80p
Code: Select all
&fms=80p
Code: Select all
&fhs=14
Code: Select all
&fms=14
Thanks for the tip. Done.pgn4web wrote:Another remark, I noticed that a small change in the board.html code might improve the display of some of the chess informant symbols fonts with some browsers, for instance for the "xxx has a slight advantage marks"
In the recommended URL you have nowandCode: Select all
&fhs=80p
The new recommendation will beCode: Select all
&fms=80p
andCode: Select all
&fhs=14
This make the font slightly bigger and the whole setup more resilent.Code: Select all
&fms=14
It is not able to detect the font size from the forum. It has to be a fixed number.Uly wrote:The size of the text moves in the game seems too big, compare them to the sizes in the posts's text:
Could it pick up the size of the Forum Style's font so more moves fit in the lines?
Code: Select all
<script src="chess-informant-NAG-symbols.js" type="text/javascript"></script>
Code: Select all
<script src="chess-informant-NAG-symbols-alternative.js" type="text/javascript"></script>
This is because Jeremy is testing a beta version of the original pgn4web code that adds variation support but does not have few of the other customizations that Jeremy added in his version for this forum. No worries, once the beta testing is over, Jeremy will likely reapply those customizations... I had to refrain myself from doing something to prevent coordinates to be displayed around the chessboard, but I finally did notUly wrote:Also, this used to work yesterday while today it seems... broken.