chiark / gitweb /
Support for loading games in Javascript puzzles.
authorSimon Tatham <anakin@pobox.com>
Tue, 5 Sep 2017 19:48:42 +0000 (20:48 +0100)
committerSimon Tatham <anakin@pobox.com>
Tue, 5 Sep 2017 19:58:05 +0000 (20:58 +0100)
commit721119e4a61cbb261b456dfd134811d7beb5ce98
treec31c90e57d7cb002fcfc9f09bc15b505836ae422
parent1bf591a5735068d1853be13c5a4255962835d5fe
Support for loading games in Javascript puzzles.

This is done by showing a dialog containing an <input type="file">
through which the user can 'upload' a save file - though, of course,
the 'upload' doesn't go to any HTTP server, but only into the mind of
the Javascript running in the same browser.

It would be even nicer to support drag-and-drop as an alternative UI
for getting the save file into the browser, but that isn't critical to
getting the first version of this feature out of the door.
emcc.c
emccpre.js
emccx.json
html/jspage.pl