Check out Smess, our featured variant for February, 2025.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

0000000100000000[Subject Thread] [Add Response]
H. G. Muller wrote on Wed, Sep 14, 2016 07:16 AM UTC:

The submission software now also general posting of HTML in comments. That means it is also possible to put an interactive diagram there. But as you can see from this example, the formatting is not really adapted to that. (*)

files=3 ranks=4 holdingsType=-1 promoOffset=3 graphicsDir=http://www.chessvariants.com/graphics.dir/alfaerie/ whitePrefix=w blackPrefix=b graphicsType=gif squareSize=54 symmetry=none chick::fW:pawn:b2,,b3 elephant::F:elephant:a1,,c4 giraffe::W:giraffe:c1,,a4 hen::WfF:dragon:, lion::K:lion:b1,,b4

The diagram script is not really suitable for that either, as it is not possible to have more than one interactive diagram per page. The JavaScript searches for a HTML element with id="diagram", takes the diagram description from there, and puts the HTML code to display the diagram in its place. If there would be multiple elements with this 'id', it would only see the first. This is not easy to fix. And it means that people can pre-empt each others diagrams. You can always click 'View', however, to see a posting in isolation.

So perhaps this practice should not be encouraged.

[Edit] *) When I removed the floating style of the diagram it is not so bad, and the diagram no longer extends into the preceding posting.