]> git.sesse.net Git - remoteglot/log
remoteglot
15 months agoUnbreak dragging again.
Steinar H. Gunderson [Thu, 29 Dec 2022 20:36:30 +0000 (21:36 +0100)]
Unbreak dragging again.

15 months agoRemove leftover, now buggy code.
Steinar H. Gunderson [Thu, 29 Dec 2022 20:30:22 +0000 (21:30 +0100)]
Remove leftover, now buggy code.

15 months agoFix a snafu.
Steinar H. Gunderson [Thu, 29 Dec 2022 19:31:52 +0000 (20:31 +0100)]
Fix a snafu.

15 months agoStop the barrage of clock timer events if one of the players went out on time.
Steinar H. Gunderson [Thu, 29 Dec 2022 19:28:11 +0000 (20:28 +0100)]
Stop the barrage of clock timer events if one of the players went out on time.

15 months agoLess style calculation in Chrome. (This is my fault, and I am sorry...)
Steinar H. Gunderson [Thu, 29 Dec 2022 18:36:27 +0000 (19:36 +0100)]
Less style calculation in Chrome. (This is my fault, and I am sorry...)

15 months agoYet more transition tweaks.
Steinar H. Gunderson [Thu, 29 Dec 2022 18:18:13 +0000 (19:18 +0100)]
Yet more transition tweaks.

First, put them all into one big rAF now (this requires some inlining,
but they are so small that it's really fine). Second, add a backup timeout
so that we should never really see ghost pieces remaining.

15 months agoSlightly fewer DOM calls in print_pv().
Steinar H. Gunderson [Thu, 29 Dec 2022 13:49:23 +0000 (14:49 +0100)]
Slightly fewer DOM calls in print_pv().

15 months agoFinally fix the issue with truncated scoresparks on mobile.
Steinar H. Gunderson [Thu, 29 Dec 2022 13:39:36 +0000 (14:39 +0100)]
Finally fix the issue with truncated scoresparks on mobile.

15 months agoRemove a bunch of pointless comparisons with true.
Steinar H. Gunderson [Thu, 29 Dec 2022 13:11:12 +0000 (14:11 +0100)]
Remove a bunch of pointless comparisons with true.

15 months agoRewrite how the chessboard works.
Steinar H. Gunderson [Thu, 29 Dec 2022 12:49:07 +0000 (13:49 +0100)]
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.

15 months agoSlightly less weird FEN generation.
Steinar H. Gunderson [Thu, 29 Dec 2022 11:10:38 +0000 (12:10 +0100)]
Slightly less weird FEN generation.

15 months agoFix regression in truncating PV.
Steinar H. Gunderson [Thu, 29 Dec 2022 10:15:45 +0000 (11:15 +0100)]
Fix regression in truncating PV.

15 months agoMore simplification in print_pv().
Steinar H. Gunderson [Thu, 29 Dec 2022 09:07:10 +0000 (10:07 +0100)]
More simplification in print_pv().

15 months agoSimplify print_pv().
Steinar H. Gunderson [Thu, 29 Dec 2022 09:03:32 +0000 (10:03 +0100)]
Simplify print_pv().

15 months agoUse a slightly more normal function syntax.
Steinar H. Gunderson [Thu, 29 Dec 2022 08:49:28 +0000 (09:49 +0100)]
Use a slightly more normal function syntax.

15 months agoDo not rely on innerHTML for print_pv().
Steinar H. Gunderson [Wed, 28 Dec 2022 23:45:38 +0000 (00:45 +0100)]
Do not rely on innerHTML for print_pv().

15 months agoBatch moving pieces together in one rAF.
Steinar H. Gunderson [Wed, 28 Dec 2022 23:24:51 +0000 (00:24 +0100)]
Batch moving pieces together in one rAF.

15 months agoRemove more offboard logic we do not need.
Steinar H. Gunderson [Wed, 28 Dec 2022 21:33:50 +0000 (22:33 +0100)]
Remove more offboard logic we do not need.

15 months agoImprove a comment in onSnapEnd.
Steinar H. Gunderson [Wed, 28 Dec 2022 21:17:46 +0000 (22:17 +0100)]
Improve a comment in onSnapEnd.

16 months agoRemove some now-obsolete vendor prefixing.
Steinar H. Gunderson [Wed, 28 Dec 2022 08:58:04 +0000 (09:58 +0100)]
Remove some now-obsolete vendor prefixing.

16 months agoRemove some trash code that we do not use.
Steinar H. Gunderson [Wed, 28 Dec 2022 00:00:06 +0000 (01:00 +0100)]
Remove some trash code that we do not use.

16 months agoRemove obsolete jQuery version checks.
Steinar H. Gunderson [Tue, 27 Dec 2022 23:58:28 +0000 (00:58 +0100)]
Remove obsolete jQuery version checks.

16 months agoRemove the spare piece functionality we do not use.
Steinar H. Gunderson [Tue, 27 Dec 2022 23:54:10 +0000 (00:54 +0100)]
Remove the spare piece functionality we do not use.

16 months agoFaster and smaller update_imbalance().
Steinar H. Gunderson [Tue, 27 Dec 2022 17:15:54 +0000 (18:15 +0100)]
Faster and smaller update_imbalance().

16 months agoCheaper createId().
Steinar H. Gunderson [Tue, 27 Dec 2022 17:08:42 +0000 (18:08 +0100)]
Cheaper createId().

16 months agoRemove depth_secondary_key, which was off for 5+ years without anyone noticing.
Steinar H. Gunderson [Tue, 27 Dec 2022 17:05:02 +0000 (18:05 +0100)]
Remove depth_secondary_key, which was off for 5+ years without anyone noticing.

16 months agoRemove unused variable.
Steinar H. Gunderson [Tue, 27 Dec 2022 16:13:23 +0000 (17:13 +0100)]
Remove unused variable.

16 months agoPosition arrows without forcing a style recalc.
Steinar H. Gunderson [Tue, 27 Dec 2022 11:59:56 +0000 (12:59 +0100)]
Position arrows without forcing a style recalc.

16 months agoCompress the sparkline range a bit.
Steinar H. Gunderson [Mon, 26 Dec 2022 14:14:55 +0000 (15:14 +0100)]
Compress the sparkline range a bit.

16 months agoRevert "Show retained/interpolated scores with 50% alpha."
Steinar H. Gunderson [Mon, 26 Dec 2022 14:07:51 +0000 (15:07 +0100)]
Revert "Show retained/interpolated scores with 50% alpha."

A bit too distracting.

This reverts commit b3aae4b92383a29a31b7c9557655efc45922c3ad.

16 months agoShow retained/interpolated scores with 50% alpha.
Steinar H. Gunderson [Mon, 26 Dec 2022 12:50:39 +0000 (13:50 +0100)]
Show retained/interpolated scores with 50% alpha.

16 months agoAlign the sparkline a bit better.
Steinar H. Gunderson [Mon, 26 Dec 2022 11:15:28 +0000 (12:15 +0100)]
Align the sparkline a bit better.

16 months agoMuch faster findClosestPiece() (also generates much less garbage).
Steinar H. Gunderson [Sun, 25 Dec 2022 23:10:37 +0000 (00:10 +0100)]
Much faster findClosestPiece() (also generates much less garbage).

16 months agoFix click-to-drag and click-to-suggest post-jQuery.
Steinar H. Gunderson [Sun, 25 Dec 2022 21:30:48 +0000 (22:30 +0100)]
Fix click-to-drag and click-to-suggest post-jQuery.

16 months agoFix double-forwarding when clicking along a hash-probe line.
Steinar H. Gunderson [Sun, 25 Dec 2022 21:30:26 +0000 (22:30 +0100)]
Fix double-forwarding when clicking along a hash-probe line.

16 months agoBatch fade-in/fade-out, for ~5 ms less FCP.
Steinar H. Gunderson [Sun, 25 Dec 2022 20:19:32 +0000 (21:19 +0100)]
Batch fade-in/fade-out, for ~5 ms less FCP.

16 months agoChess.js: In move_from_san(), only bother generating relevant candidate moves.
Steinar H. Gunderson [Sun, 25 Dec 2022 20:02:13 +0000 (21:02 +0100)]
Chess.js: In move_from_san(), only bother generating relevant candidate moves.

16 months agoChess.js bugfixes.
Steinar H. Gunderson [Sun, 25 Dec 2022 19:34:55 +0000 (20:34 +0100)]
Chess.js bugfixes.

16 months agoFix some issues with exploring the wrong lines, especially when the backend probes...
Steinar H. Gunderson [Sun, 25 Dec 2022 17:09:06 +0000 (18:09 +0100)]
Fix some issues with exploring the wrong lines, especially when the backend probes fail.

16 months agoFix touch events post-jQuery.
Steinar H. Gunderson [Sun, 25 Dec 2022 15:21:39 +0000 (16:21 +0100)]
Fix touch events post-jQuery.

16 months agoRemove innerHTML from imbalance piece display.
Steinar H. Gunderson [Sun, 25 Dec 2022 14:47:47 +0000 (15:47 +0100)]
Remove innerHTML from imbalance piece display.

16 months agochess.js: Skip legality checking during disambiguation if not needed.
Steinar H. Gunderson [Sun, 25 Dec 2022 12:43:36 +0000 (13:43 +0100)]
chess.js: Skip legality checking during disambiguation if not needed.

16 months agochess.js: Faster and smaller attacked(). (A test perft went from ~11.5 to ~7.5 secs.)
Steinar H. Gunderson [Sun, 25 Dec 2022 12:35:07 +0000 (13:35 +0100)]
chess.js: Faster and smaller attacked(). (A test perft went from ~11.5 to ~7.5 secs.)

16 months agoBuild pieces through the DOM, not innerHTML.
Steinar H. Gunderson [Sat, 24 Dec 2022 23:05:49 +0000 (00:05 +0100)]
Build pieces through the DOM, not innerHTML.

16 months agoEvidently clearTimeout() is expensive (~3 ms used on load), so do not call it unless...
Steinar H. Gunderson [Sat, 24 Dec 2022 23:02:42 +0000 (00:02 +0100)]
Evidently clearTimeout() is expensive (~3 ms used on load), so do not call it unless we must.

16 months agoUse innerHTML slightly less (it is costly).
Steinar H. Gunderson [Sat, 24 Dec 2022 22:58:24 +0000 (23:58 +0100)]
Use innerHTML slightly less (it is costly).

16 months agochess.js: Much faster disambiguation.
Steinar H. Gunderson [Sat, 24 Dec 2022 20:03:36 +0000 (21:03 +0100)]
chess.js: Much faster disambiguation.

16 months agoFix a super-long-standing bug, where making a move on the board could make us replay...
Steinar H. Gunderson [Sat, 24 Dec 2022 10:38:56 +0000 (11:38 +0100)]
Fix a super-long-standing bug, where making a move on the board could make us replay the game from the start.

16 months agoFix leftover hover when clicking on the graph.
Steinar H. Gunderson [Sat, 24 Dec 2022 10:12:16 +0000 (11:12 +0100)]
Fix leftover hover when clicking on the graph.

16 months agoPrune some unused CSS rules.
Steinar H. Gunderson [Sat, 24 Dec 2022 00:16:10 +0000 (01:16 +0100)]
Prune some unused CSS rules.

16 months agoMake sure the SVG pieces are in front of the letters.
Steinar H. Gunderson [Sat, 24 Dec 2022 00:04:53 +0000 (01:04 +0100)]
Make sure the SVG pieces are in front of the letters.

16 months agoFix min/max range for the most recent move.
Steinar H. Gunderson [Fri, 23 Dec 2022 23:39:57 +0000 (00:39 +0100)]
Fix min/max range for the most recent move.

16 months agoUse proper variable scoping everywhere.
Steinar H. Gunderson [Fri, 23 Dec 2022 23:27:50 +0000 (00:27 +0100)]
Use proper variable scoping everywhere.

16 months agoFix highlight removals.
Steinar H. Gunderson [Fri, 23 Dec 2022 23:20:13 +0000 (00:20 +0100)]
Fix highlight removals.

16 months agoEat JSON parse errors in hash explores.
Steinar H. Gunderson [Fri, 23 Dec 2022 23:05:24 +0000 (00:05 +0100)]
Eat JSON parse errors in hash explores.

16 months agoAdd a Firefox workaround for animations.
Steinar H. Gunderson [Fri, 23 Dec 2022 22:08:17 +0000 (23:08 +0100)]
Add a Firefox workaround for animations.

16 months agoFix transitionProperty syntax.
Steinar H. Gunderson [Fri, 23 Dec 2022 22:06:29 +0000 (23:06 +0100)]
Fix transitionProperty syntax.

16 months agoRemove the minimized chessboard.js and chess.js, which are no longer matching the...
Steinar H. Gunderson [Fri, 23 Dec 2022 20:38:39 +0000 (21:38 +0100)]
Remove the minimized chessboard.js and chess.js, which are no longer matching the full versions.

16 months agoDrop base64 encoding for SVGs.
Steinar H. Gunderson [Fri, 23 Dec 2022 18:18:50 +0000 (19:18 +0100)]
Drop base64 encoding for SVGs.

This is perhaps a bit hacky... but it saves 1567 gzip bytes. :-)

16 months agoRemove a bunch of unneeded whitespace from the SVGs.
Steinar H. Gunderson [Fri, 23 Dec 2022 17:42:53 +0000 (18:42 +0100)]
Remove a bunch of unneeded whitespace from the SVGs.

642 fewer gzipped bytes, for basically no cost.

16 months agoVarious fixes for running with advanced JS optimizations, if we want to do that in...
Steinar H. Gunderson [Fri, 23 Dec 2022 17:42:20 +0000 (18:42 +0100)]
Various fixes for running with advanced JS optimizations, if we want to do that in the future.

16 months agoDon't show the copyright blurb in chessboard.css; we already have it from the JS.
Steinar H. Gunderson [Fri, 23 Dec 2022 16:27:10 +0000 (17:27 +0100)]
Don't show the copyright blurb in chessboard.css; we already have it from the JS.

16 months agoMake UNIX lineendings in chessboard.css.
Steinar H. Gunderson [Fri, 23 Dec 2022 16:25:53 +0000 (17:25 +0100)]
Make UNIX lineendings in chessboard.css.

16 months agoRemove jQuery!
Steinar H. Gunderson [Fri, 23 Dec 2022 16:13:11 +0000 (17:13 +0100)]
Remove jQuery!

16 months agoMake our own SVG sparkline, replacing jquery.sparkline.js.
Steinar H. Gunderson [Fri, 23 Dec 2022 16:12:50 +0000 (17:12 +0100)]
Make our own SVG sparkline, replacing jquery.sparkline.js.

16 months agoFix SVG positioning when we are scrolled.
Steinar H. Gunderson [Fri, 23 Dec 2022 13:36:21 +0000 (14:36 +0100)]
Fix SVG positioning when we are scrolled.

16 months agoFix another jQuery-ism.
Steinar H. Gunderson [Fri, 23 Dec 2022 09:46:06 +0000 (10:46 +0100)]
Fix another jQuery-ism.

16 months agoUpdate chessboard.js copyright and version to make it clear it is a modified version.
Steinar H. Gunderson [Thu, 22 Dec 2022 22:43:13 +0000 (23:43 +0100)]
Update chessboard.js copyright and version to make it clear it is a modified version.

16 months agoRemove some obsolete checks from chessboard.js.
Steinar H. Gunderson [Thu, 22 Dec 2022 22:41:54 +0000 (23:41 +0100)]
Remove some obsolete checks from chessboard.js.

16 months agoGet rid of some more unneeded jQuery.
Steinar H. Gunderson [Thu, 22 Dec 2022 22:33:01 +0000 (23:33 +0100)]
Get rid of some more unneeded jQuery.

16 months agoRemove an unused jQuery version.
Steinar H. Gunderson [Thu, 22 Dec 2022 22:32:40 +0000 (23:32 +0100)]
Remove an unused jQuery version.

16 months agoRemove the rest of jQuery from chessboard.js.
Steinar H. Gunderson [Thu, 22 Dec 2022 22:24:52 +0000 (23:24 +0100)]
Remove the rest of jQuery from chessboard.js.

There are still two animations left, because we don't use them
(they both relate to spare pieces). Fixing them would be simple.

16 months agoRemove all jQuery from chessboard.js that does not involve animations.
Steinar H. Gunderson [Tue, 20 Dec 2022 23:27:55 +0000 (00:27 +0100)]
Remove all jQuery from chessboard.js that does not involve animations.

16 months agoDevelop using un-minified chessboard.js.
Steinar H. Gunderson [Tue, 20 Dec 2022 23:53:19 +0000 (00:53 +0100)]
Develop using un-minified chessboard.js.

16 months agoRemove most of our jQuery usage.
Steinar H. Gunderson [Tue, 20 Dec 2022 23:06:26 +0000 (00:06 +0100)]
Remove most of our jQuery usage.

This actually costs us 3 kB of (uncompressed) code in index.html,
since we still have the entire dependency on board. But the aim
is to get rid of jQuery entirely.

16 months agoReplace jQuery ajax() with the fetch API in all of our own code.
Steinar H. Gunderson [Tue, 20 Dec 2022 22:27:52 +0000 (23:27 +0100)]
Replace jQuery ajax() with the fetch API in all of our own code.

17 months agoInline tons of stuff into the main HTML.
Steinar H. Gunderson [Wed, 2 Nov 2022 22:46:53 +0000 (23:46 +0100)]
Inline tons of stuff into the main HTML.

17 months agoSend the favicon through pngcrush.
Steinar H. Gunderson [Wed, 2 Nov 2022 22:03:46 +0000 (23:03 +0100)]
Send the favicon through pngcrush.

17 months agoIE is dead.
Steinar H. Gunderson [Wed, 2 Nov 2022 21:58:09 +0000 (22:58 +0100)]
IE is dead.

17 months agoFix a missing closing brace.
Steinar H. Gunderson [Wed, 2 Nov 2022 21:57:45 +0000 (22:57 +0100)]
Fix a missing closing brace.

17 months agoAdd a primitive user-selectable delay, for matching up with TV. Requested by Sigurd...
Steinar H. Gunderson [Sat, 29 Oct 2022 15:26:06 +0000 (17:26 +0200)]
Add a primitive user-selectable delay, for matching up with TV. Requested by Sigurd Egset.

17 months agoMove response processing down to a function.
Steinar H. Gunderson [Sat, 29 Oct 2022 15:14:26 +0000 (17:14 +0200)]
Move response processing down to a function.

18 months agoDo not show the board before we have an initial load.
Steinar H. Gunderson [Sat, 22 Oct 2022 11:07:37 +0000 (13:07 +0200)]
Do not show the board before we have an initial load.

18 months agoMake scripts renderblocking.
Steinar H. Gunderson [Sat, 22 Oct 2022 11:04:19 +0000 (13:04 +0200)]
Make scripts renderblocking.

18 months agoBetter imbalance pieces in dark mode.
Steinar H. Gunderson [Thu, 20 Oct 2022 17:55:26 +0000 (19:55 +0200)]
Better imbalance pieces in dark mode.

Simply use the pieces of the opposite color and invert them;
they are made for a light background.

18 months agoUpdate copyright year.
Steinar H. Gunderson [Thu, 20 Oct 2022 16:44:35 +0000 (18:44 +0200)]
Update copyright year.

18 months agoUse SVG pieces.
Steinar H. Gunderson [Thu, 20 Oct 2022 16:04:27 +0000 (18:04 +0200)]
Use SVG pieces.

The PNG pieces don't look fantastic on hidpi, and the SVGs are a
bit smaller, too. This is the same Wikipedia set, just with some
(most) pieces in newer versions since they are smaller and sometimes
better aligned.

We put the SVGs directly into the .js file as base64, so that we
get zero HTTP requests for the pieces.

20 months agoFix dark mode borders on mobile.
Steinar H. Gunderson [Sun, 31 Jul 2022 10:34:03 +0000 (12:34 +0200)]
Fix dark mode borders on mobile.

22 months agoFormally opt into the dark color scheme.
Steinar H. Gunderson [Mon, 13 Jun 2022 22:16:13 +0000 (00:16 +0200)]
Formally opt into the dark color scheme.

2 years agoMerge remote-tracking branch 'origin/master'
Steinar H. Gunderson [Fri, 5 Nov 2021 14:36:30 +0000 (15:36 +0100)]
Merge remote-tracking branch 'origin/master'

2 years agoRevert "Send information about lower depths to the JSON."
Steinar H. Gunderson [Fri, 5 Nov 2021 14:34:26 +0000 (15:34 +0100)]
Revert "Send information about lower depths to the JSON."

The entire low-PV experiment didn't go as I had hoped,
so remove it as clutter.

This reverts commit 9fc4030d9b55674b73c341c815292055fcb6f05c.

2 years agoRevert "Show low-depth scores."
Steinar H. Gunderson [Fri, 5 Nov 2021 14:34:25 +0000 (15:34 +0100)]
Revert "Show low-depth scores."

This reverts commit f71f5c94d093acda1b39d23cf7a71a21c6a3122b.

2 years agoRevert "Convert TB scores in low depth."
Steinar H. Gunderson [Fri, 5 Nov 2021 14:34:23 +0000 (15:34 +0100)]
Revert "Convert TB scores in low depth."

This reverts commit e6680e77c571d6253140e5429213d6d06d19eb36.

2 years agoRevert "Include the PV move in the low-depth analysis."
Steinar H. Gunderson [Fri, 5 Nov 2021 14:34:03 +0000 (15:34 +0100)]
Revert "Include the PV move in the low-depth analysis."

This reverts commit b827590935f10fd11c664e513f4daf94c52cce2a.

2 years agoDisplay the best move for low-depth.
Steinar H. Gunderson [Sun, 18 Jul 2021 14:15:16 +0000 (16:15 +0200)]
Display the best move for low-depth.

2 years agoInclude the PV move in the low-depth analysis.
Steinar H. Gunderson [Sun, 18 Jul 2021 14:10:20 +0000 (16:10 +0200)]
Include the PV move in the low-depth analysis.

2 years agoConvert TB scores in low depth.
Steinar H. Gunderson [Fri, 16 Jul 2021 16:56:38 +0000 (18:56 +0200)]
Convert TB scores in low depth.

2 years agoShow low-depth scores.
Steinar H. Gunderson [Fri, 16 Jul 2021 14:54:01 +0000 (16:54 +0200)]
Show low-depth scores.

2 years agoSend information about lower depths to the JSON.
Steinar H. Gunderson [Fri, 16 Jul 2021 14:34:24 +0000 (16:34 +0200)]
Send information about lower depths to the JSON.

2 years agoMove back to development version (was inadvertedly changed).
Steinar H. Gunderson [Fri, 16 Jul 2021 10:47:27 +0000 (12:47 +0200)]
Move back to development version (was inadvertedly changed).