]> git.sesse.net Git - remoteglot/commit
Rewrite how the chessboard works.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 29 Dec 2022 12:49:07 +0000 (13:49 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 29 Dec 2022 12:49:07 +0000 (13:49 +0100)
commit249993293db3218abf9cfa7a88fd9fd2dd5e1101
treec347493b5a88f8d8e772c552aa1193c57d3ba293
parenta6273fb472bf6815668c3ad6a4ec18317ae5b22d
Rewrite how the chessboard works.

Lots of changes; the board is now completely responsive, with everything
being positioned in terms of 12.5% increments relative to the board
(and the grid being an actual CSS grid). Animated pieces are now simply
being moved, instead of making a separate piece for the animation and
deleting it later.

It's not much smaller and I'm not sure if it's actually faster,
but it should make the problems of phantom pieces somewhat smaller.
It should certainly fix the off-grid pieces showing up.
www/css/chessboard-0.3.0.css
www/css/remoteglot.css
www/js/chessboard-0.3.0.js
www/js/remoteglot.js