fix user instruction + add enter-key event listener
This commit is contained in:
parent
e801e2d9b9
commit
e96af15a61
1 changed files with 13 additions and 4 deletions
|
@ -4,11 +4,19 @@ title: Runaway Planning Results
|
|||
|
||||
{{< dummy >}}
|
||||
|
||||
<input type="number" id="resultId" min="0" max="99" default="0">
|
||||
<input type="submit" id="showResultButton">
|
||||
<h2>
|
||||
Please enter a number in the field below, and press enter. The corresponding
|
||||
dataset will be loaded.
|
||||
</h2>
|
||||
|
||||
<p>If the video does not load for a given algorithm, that means it failed to
|
||||
compute a solution (within the 10s timeout).</p>
|
||||
<input type="number" id="resultId" min="0" max="99" default="0" />
|
||||
<input type="submit" id="showResultButton" value="Load dataset" />
|
||||
|
||||
|
||||
<h3>
|
||||
If the video does not load for a given algorithm, that means it failed to
|
||||
compute a solution (within the 10s timeout).
|
||||
</h3>
|
||||
|
||||
<div>
|
||||
<p>Raw CBS</p>
|
||||
|
@ -35,6 +43,7 @@ compute a solution (within the 10s timeout).</p>
|
|||
var idField = document.getElementById("resultId");
|
||||
var button = document.getElementById("showResultButton");
|
||||
button.addEventListener("click", () => show_all_videos(idField.value));
|
||||
idField.addEventListener("keypress", (event) => event.key === "Enter" && button.click());
|
||||
|
||||
function show_one_video(videoDiv, n) {
|
||||
const videoLoc = "./" + videoDiv.id + "/from_generated_" + n + ".mp4";
|
||||
|
|
Loading…
Reference in a new issue