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.) --- emcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emcc.c') diff --git a/emcc.c b/emcc.c index c1b1f7a..74f17cf 100644 --- a/emcc.c +++ b/emcc.c @@ -696,7 +696,7 @@ void command(int n) midend_redraw(me); update_undo_redo(); js_focus_canvas(); - select_appropriate_preset(); /* sort out Custom/Customise */ + select_appropriate_preset(); } } break; -- cgit v1.1