H. G. Muller wrote on Sun, May 9, 2021 06:25 AM UTC:
OK, that looks good. Except for those with JavaScript switched off.
To cure that there should be a static image as alternative (screenshot?), in <noscript> tags. Perhaps together with a message that points out what they are missing):
<noscript>
<p>You can play against this diagram if JavaScript is on</p>
<img src="....">
</noscript>
And you can add display:none; to the style of the <div> conaining the interactive diagram; the betza.js script would make it visible when it converts the deinition to a board image, and it keeps the definition hidden when JavaScript is off.
The color change is by design. Should really happen on the first click already. This can be suppressed by using darkShade instead of startShade to set the color. Bright colors are often not ideal for playing, especially when colors were used for highlighting. But some diagrams use dark-blue squares, which even camouflage the 'black' Alfaerie pieces.
OK, that looks good. Except for those with JavaScript switched off.
To cure that there should be a static image as alternative (screenshot?), in <noscript> tags. Perhaps together with a message that points out what they are missing):
And you can add display:none; to the style of the <div> conaining the interactive diagram; the betza.js script would make it visible when it converts the deinition to a board image, and it keeps the definition hidden when JavaScript is off.
The color change is by design. Should really happen on the first click already. This can be suppressed by using darkShade instead of startShade to set the color. Bright colors are often not ideal for playing, especially when colors were used for highlighting. But some diagrams use dark-blue squares, which even camouflage the 'black' Alfaerie pieces.