X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=emccpre.js;h=50825556171e5442827ea93865d2ba22334a40d9;hb=db313b3948d27244dd7c34c2609c66d6204d8931;hp=548e2a533e3f3086586fbf2a87d8d4bf77150b15;hpb=49fba922eac8c4022b002e340080be9a7134132e;p=sgt-puzzles.git diff --git a/emccpre.js b/emccpre.js index 548e2a5..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,10 +79,12 @@ var dlg_return_funcs = null; // pass back the final value in each dialog control. var dlg_return_sval, dlg_return_ival; -// The