shithub: puzzles

Download patch

ref: 8f40128f0863b4bc34ed7e2f271374134b0336b9
parent: 27d41e7cf0f2c21550f495325230201ad0a1be7b
author: Ben Harris <bjh21@bjh21.me.uk>
date: Sat Nov 12 06:22:59 EST 2022

js: Prettify menu HTML

Now that we're using flex layout, whitespace in the menu isn't scary and
we can use it to make the HTML readable.

Also finally remove the "afterseparator" class that's long obsolete.
You can always use ".separator + *" as a selector instead.

--- a/html/jspage.pl
+++ b/html/jspage.pl
@@ -305,20 +305,31 @@
 
 <hr>
 <div id="puzzle" style="display: none">
-<form id="gamemenu"><ul><li><div>Game...<ul
-><li><button type="button" id="specific">Enter game ID</button></li
-><li><button type="button" id="random">Enter random seed</button></li
-><li><button type="button" id="save">Download save file</button></li
-><li><button type="button" id="load">Upload save file</button></li
-></ul></div></li
-><li><div>Type...<ul id="gametype"></ul></div></li
-><li class="separator"></li
-><li class="afterseparator"><button type="button" id="new">New<span class="verbiage"> game</span></button></li
-><li><button type="button" id="restart">Restart<span class="verbiage"> game</span></button></li
-><li><button type="button" id="undo">Undo<span class="verbiage"> move</span></button></li
-><li><button type="button" id="redo">Redo<span class="verbiage"> move</span></button></li
-><li><button type="button" id="solve">Solve<span class="verbiage"> game</span></button></li
-></ul></form>
+<form id="gamemenu"><ul>
+  <li><div>Game...<ul>
+    <li><button type="button" id="specific">Enter game ID</button></li>
+    <li><button type="button" id="random">Enter random seed</button></li>
+    <li><button type="button" id="save">Download save file</button></li>
+    <li><button type="button" id="load">Upload save file</button></li>
+  </ul></div></li>
+  <li><div>Type...<ul id="gametype"></ul></div></li>
+  <li class="separator"></li>
+  <li><button type="button" id="new">
+    New<span class="verbiage"> game</span>
+  </button></li>
+  <li><button type="button" id="restart">
+    Restart<span class="verbiage"> game</span>
+  </button></li>
+  <li><button type="button" id="undo">
+    Undo<span class="verbiage"> move</span>
+  </button></li>
+  <li><button type="button" id="redo">
+    Redo<span class="verbiage"> move</span>
+  </button></li>
+  <li><button type="button" id="solve">
+    Solve<span class="verbiage"> game</span>
+  </button></li>
+</ul></form>
 <div align=center>
   <div id="resizable">
   <canvas id="puzzlecanvas" width="1px" height="1px" tabindex="1">