]> git.sesse.net Git - remoteglot/blobdiff - www/index.dev.html
Send the first JSON inline.
[remoteglot] / www / index.dev.html
index b3e1cc40e24787933161d9a4cc8893245a923615..4562b48d67c76f146e3133e6f214855fb8319c63 100644 (file)
@@ -5,18 +5,16 @@
   <title>analysis.sesse.net</title>
   <meta name="viewport" content="width=device-width, initial-scale=1" />
   <!-- replace <style>[chomp;css/remoteglot.min.css]</style> -->
-  <link rel="stylesheet" href="css/chessboard-0.3.0.min.css" />
+  <link rel="stylesheet" href="css/chessboard-0.3.0.css" />
   <link rel="stylesheet" href="css/remoteglot.css" />
   <!-- end replace -->
   <!-- replace <link rel="shortcut icon" href="data:image/png;base64,[base64;favicon.ico]" type="image/png"> -->
   <!-- end replace -->
 
-  <!-- replace <script>[js/remoteglot.min.js]</script> -->
-  <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
-  <script type="text/javascript" src="js/chessboard-0.3.0.min.js"></script>
+  <!-- replace <script>/*REPLACE:inlinejson*/[js/remoteglot.min.js]</script> -->
+  <script type="text/javascript" src="js/chessboard-0.3.0.js"></script>
   <script type="text/javascript" src="js/chess.js"></script>
   <script type="text/javascript" src="js/json_delta.js"></script>
-  <script type="text/javascript" src="js/jquery.sparkline.js"></script>
   <script type="text/javascript" src="js/remoteglot.js"></script>
   <!-- end replace -->
 </head>
@@ -39,9 +37,9 @@
 <div id="analysis">
   <div id="scorecontainer">
     <span id="score">Score:</span>
-    <div id="scoresparkcontainer">
-      <span id="scorespark"></span>
-    </div>
+    <svg xmlns="http://www.w3.org/2000/svg" id="scoresparkcontainer">
+    </svg>
+    <div id="sparklinehover"></div>
   </div>
   <p id="pvcontainer"><strong id="pvtitle">PV:</strong> <span id="pv"></span></p>
   <p id="searchstats"></p>
@@ -63,7 +61,9 @@
 </div>
 <h2 style="clear: both;">Symbol explanation</h2>
 <ul>
-  <li><strong>Score:</strong> 1.00 is the value of one pawn (in a balanced endgame). Positive values are better for white.</li>
+  <li><strong>Score:</strong> 1.00 is roughly one pawn
+   (<a href="https://github.com/official-stockfish/Stockfish/commit/ad2aa8c06f438de8b8bb7b7c8726430e3f2a5685">technically</a>,
+   50% win probability for a computer). Positive values are better for white.</li>
   <li><strong>PV:</strong> Principal Variation, the series of moves the engine thinks is the best.</li>
   <li><strong>Thick red line:</strong> Marks the best move (in the view of the engine). Multiple chained arrows
     means that the PV starts with multiple successive moves with the same piece, ie., the engine thinks
@@ -76,7 +76,7 @@
     is forced or nearly so.</li>
 </ul>
 <p id="credits"><a href="http://git.sesse.net/?p=remoteglot;a=summary">remoteglot</a>
-  &copy; 2007&ndash;2022 <a href="http://www.sesse.net/">Steinar H. Gunderson</a>.
+  &copy; 2007&ndash;2023 <a href="http://www.sesse.net/">Steinar H. Gunderson</a>.
   Chess analysis by <a href="http://stockfishchess.org/" id="engineid">Stockfish</a><span id="enginedetails"></span>.
   <span id="movesource"></span>
   Hosting and additional analysis hardware by <a href="http://www.samfundet.no/">Studentersamfundet i Trondhjem</a>