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.) --- emccpre.js | 33 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 20 deletions(-) (limited to 'emccpre.js') diff --git a/emccpre.js b/emccpre.js index ebf67d1..b10bf29 100644 --- a/emccpre.js +++ b/emccpre.js @@ -79,22 +79,11 @@ var dlg_return_funcs = null; // pass back the final value in each dialog control. var dlg_return_sval, dlg_return_ival; -// The