chiark / gitweb /
Support for saving games in Javascript puzzles.
authorSimon Tatham <anakin@pobox.com>
Tue, 5 Sep 2017 19:10:16 +0000 (20:10 +0100)
committerSimon Tatham <anakin@pobox.com>
Tue, 5 Sep 2017 19:56:55 +0000 (20:56 +0100)
commit1bf591a5735068d1853be13c5a4255962835d5fe
tree9b7ee6b9396ccc38ef70ca6ba377e5b25fd0df66
parentb31ea221673a8f49a383a4a119d6edaabd39642d
Support for saving games in Javascript puzzles.

This is done by getting midend_serialise to produce the complete
saved-game file as an in-memory string buffer, and then encoding that
into a data: URI which we provide to the user as a hyperlink in a
dialog box. The hyperlink has the 'download' attribute, which means
clicking on it should automatically offer to save the file, and also
lets me specify a not-too-silly default file name.
emcc.c
emccpre.js
emccx.json
html/jspage.pl