X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=emccpre.js;h=50825556171e5442827ea93865d2ba22334a40d9;hb=db313b3948d27244dd7c34c2609c66d6204d8931;hp=e2986da0fb4ccdac128f2aa13f29a3f8404790f0;hpb=a752e7372021c1eea5df433f08e53fae1983e8ec;p=sgt-puzzles.git diff --git a/emccpre.js b/emccpre.js index e2986da..5082555 100644 --- a/emccpre.js +++ b/emccpre.js @@ -2,7 +2,11 @@ * emccpre.js: one of the Javascript components of an Emscripten-based * web/Javascript front end for Puzzles. * - * The other parts of this system live in emcc.c and emcclib.js. + * The other parts of this system live in emcc.c and emcclib.js. It + * also depends on being run in the context of a web page containing + * an appropriate collection of bits and pieces (a canvas, some + * buttons and links etc), which is generated for each puzzle by the + * script html/jspage.pl. * * This file contains the Javascript code which is prefixed unmodified * to Emscripten's output via the --pre-js option. It declares all our @@ -33,7 +37,7 @@ var update_xmin, update_xmax, update_ymin, update_ymax; // callbacks. var Module = { 'noInitialRun': true, - 'noExitRuntime': true, + 'noExitRuntime': true }; // Variables used by js_canvas_find_font_midpoint(). @@ -75,17 +79,12 @@ var dlg_return_funcs = null; // pass back the final value in each dialog control. var dlg_return_sval, dlg_return_ival; -// The