diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2022-11-12 12:07:35 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2022-11-12 12:07:35 +0000 |
| commit | a9c783ed4e165f92e37c6ef1a65822d9967679a3 (patch) | |
| tree | aa8ed191494941688b34237548bf187ce1d460ae /emccpre.js | |
| parent | 8f40128f0863b4bc34ed7e2f271374134b0336b9 (diff) | |
| download | puzzles-a9c783ed4e165f92e37c6ef1a65822d9967679a3.zip puzzles-a9c783ed4e165f92e37c6ef1a65822d9967679a3.tar.gz puzzles-a9c783ed4e165f92e37c6ef1a65822d9967679a3.tar.bz2 puzzles-a9c783ed4e165f92e37c6ef1a65822d9967679a3.tar.xz | |
js: Label all form controls and put controls inside labels
This should help with accessibility and means we don't need to give IDs
to tick-boxes.
Diffstat (limited to 'emccpre.js')
| -rw-r--r-- | emccpre.js | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -110,12 +110,9 @@ var blitters = []; // State for the dialog-box mechanism. dlg_dimmer and dlg_form are the // page-darkening overlay and the actual dialog box respectively; -// dlg_next_id is used to allocate each checkbox a unique id to use -// for linking its label to it (see js_dialog_boolean); // dlg_return_funcs is a list of JS functions to be called when the OK // button is pressed, to pass the results back to C. var dlg_dimmer = null, dlg_form = null; -var dlg_next_id = 0; var dlg_return_funcs = null; // void dlg_return_sval(int index, const char *val); @@ -208,7 +205,6 @@ function dialog_init(titletext) { dlg_form.appendChild(title); dlg_return_funcs = []; - dlg_next_id = 0; } function dialog_launch(ok_function, cancel_function) { |