From 1bf591a5735068d1853be13c5a4255962835d5fe Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 5 Sep 2017 20:10:16 +0100 Subject: 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. --- html/jspage.pl | 1 + 1 file changed, 1 insertion(+) (limited to 'html') diff --git a/html/jspage.pl b/html/jspage.pl index f828ffe..20e2a78 100755 --- a/html/jspage.pl +++ b/html/jspage.pl @@ -209,6 +209,7 @@ ${unfinishedpara} >
  • New game
  • Enter game ID
  • Enter random seed
  • Download save file
  • Type...