From bc2c1f69fddac3a51d086fb379f0ec8954f4b894 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 26 Apr 2017 14:39:45 +0100 Subject: Javascript puzzles: switch to a CSS-based drop-down system. The previous control buttons and dropdowns based on form elements were always a bit ugly: partly in a purely visual sense, and partly because of the nasty bodge I had to do with splitting the usual 'Custom' game type menu item into two (to get round the fact that if an element of a doesn't support that at all. So here's a replacement system which does everything by CSS properties, including the popping-up of menus when the mouse moves over their parent menu item. (Thanks to the Internet in general for showing me how that trick is done.) --- html/jspage.pl | 142 +++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 132 insertions(+), 10 deletions(-) (limited to 'html/jspage.pl') diff --git a/html/jspage.pl b/html/jspage.pl index 19868bd..a21f977 100755 --- a/html/jspage.pl +++ b/html/jspage.pl @@ -63,6 +63,129 @@ EOF ${puzzlename}, ${unfinishedtitlefragment}from Simon Tatham's Portable Puzzle Collection +

${puzzlename}

@@ -73,16 +196,15 @@ ${unfinishedpara}