aboutsummaryrefslogtreecommitdiff
path: root/web/http
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--web/http/index.html2
-rw-r--r--web/http/nissyapp.mjs14
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
69function loadDataThenSolve(solver, scramble) { 55function loadDataThenSolve(solver, scramble) {

Generated with cgit - Back to sebastiano.tronto.net