diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-05-28 14:32:38 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-05-28 14:32:38 +0200 |
| commit | b1770039f4d483cdab2d4d136cd7ffbf12f165b7 (patch) | |
| tree | d1265834aacd157931af287a9b8add04132d43eb /web/http | |
| parent | fcf5a819ef52ab3069f687e6943599fa3ccf96b3 (diff) | |
| download | nissy-core-b1770039f4d483cdab2d4d136cd7ffbf12f165b7.tar.gz nissy-core-b1770039f4d483cdab2d4d136cd7ffbf12f165b7.zip | |
Enable WASM64
Diffstat (limited to '')
| -rw-r--r-- | web/http/index.html | 2 | ||||
| -rw-r--r-- | web/http/nissyapp.mjs | 14 |
2 files changed, 1 insertions, 15 deletions
diff --git a/web/http/index.html b/web/http/index.html index 0846ea8..47ccc0d 100644 --- a/web/http/index.html +++ b/web/http/index.html | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | <select id="solverSelector"> | 11 | <select id="solverSelector"> |
| 12 | <option value="h48h0k4">h48 h=0 k=4 (59Mb)</option> | 12 | <option value="h48h0k4">h48 h=0 k=4 (59Mb)</option> |
| 13 | <option value="h48h3k2" selected="selected">h48 h=3 k=2 (283Mb)</option> | 13 | <option value="h48h3k2" selected="selected">h48 h=3 k=2 (283Mb)</option> |
| 14 | <!--option value="h48h7k2">h48 h=7 k=2 (3.6Gb)</option--> | 14 | <option value="h48h7k2">h48 h=7 k=2 (3.6Gb)</option> |
| 15 | </select> | 15 | </select> |
| 16 | <button id="solveButton">Solve</button> | 16 | <button id="solveButton">Solve</button> |
| 17 | <div id="confirmDownload" style="display:none"> | 17 | <div id="confirmDownload" style="display:none"> |
diff --git a/web/http/nissyapp.mjs b/web/http/nissyapp.mjs index b8a525c..55ca198 100644 --- a/web/http/nissyapp.mjs +++ b/web/http/nissyapp.mjs | |||
| @@ -50,20 +50,6 @@ solveButton.addEventListener("click", () => { | |||
| 50 | const solver = solverSelector.options[solverSelector.selectedIndex].value; | 50 | const solver = solverSelector.options[solverSelector.selectedIndex].value; |
| 51 | const scramble = scrField.value; | 51 | const scramble = scrField.value; |
| 52 | loadDataThenSolve(solver, scramble); | 52 | loadDataThenSolve(solver, scramble); |
| 53 | |||
| 54 | const solveCallbackId = ++lastCallbackId; | ||
| 55 | callbacks.set(solveCallbackId, { | ||
| 56 | f: (callbackArg, loadResult) => { | ||
| 57 | if (loadResult.success) { | ||
| 58 | startSolve(callbackArg.solver, callbackArg.scramble); | ||
| 59 | } else { | ||
| 60 | updateResults("", "", true); | ||
| 61 | } | ||
| 62 | }, | ||
| 63 | arg: { solver: solver, scramble: scramble } | ||
| 64 | }); | ||
| 65 | |||
| 66 | const downloadCallbackId = ++lastCallbackId; | ||
| 67 | }); | 53 | }); |
| 68 | 54 | ||
| 69 | function loadDataThenSolve(solver, scramble) { | 55 | function loadDataThenSolve(solver, scramble) { |
