Publish original Headless Browser inputs from 91ca91ae26d6baf84fbc104431f13e577ca41abf (part 2)
3b98c39 verified Download definitions/fixtures/v0_4/forms/forms.html from Lexmount/LexBench-Headless-Browser: direct link, hf CLI and curl.
- Browser
- Download file 1.47 kB
-
https://huggingface.co/datasets/Lexmount/LexBench-Headless-Browser/resolve/main/definitions/fixtures/v0_4/forms/forms.html
- Command line
-
hf download hf://datasets/Lexmount/LexBench-Headless-Browser/definitions/fixtures/v0_4/forms/forms.html
-
curl -L -o forms.html https://huggingface.co/datasets/Lexmount/LexBench-Headless-Browser/resolve/main/definitions/fixtures/v0_4/forms/forms.html
1.47 kB
| <html> | |
| <head><meta charset="utf-8"><title>v0.4 forms flow</title></head> | |
| <body> | |
| <h1 id="title">Forms Flow Fixture</h1> | |
| <form id="query-form" method="GET" action="/v0_4/forms"> | |
| <input id="q" name="q" type="text"> | |
| <button id="q-submit" type="submit">Search</button> | |
| </form> | |
| <div id="q-echo"></div> | |
| <input id="overwrite" type="text"> | |
| <textarea id="notes"></textarea> | |
| <div id="radio-zone"> | |
| <input type="radio" name="opt" id="opt-a" value="a"> | |
| <input type="radio" name="opt" id="opt-b" value="b"> | |
| </div> | |
| <input type="checkbox" id="via-label-cb"> | |
| <label id="via-label" for="via-label-cb">Toggle me</label> | |
| <div id="label-out">off</div> | |
| <input id="enter-field" type="text"> | |
| <div id="enter-out">none</div> | |
| <script> | |
| // Echo the submitted query back so the submit round-trip is observable | |
| // in the reloaded document (value emerges from the interaction). | |
| var params = new URLSearchParams(location.search); | |
| if (params.has("q")) { | |
| document.getElementById("q-echo").textContent = "submitted:" + params.get("q"); | |
| } | |
| document.getElementById("via-label-cb").addEventListener("change", function () { | |
| document.getElementById("label-out").textContent = this.checked ? "via-label-on" : "via-label-off"; | |
| }); | |
| document.getElementById("enter-field").addEventListener("keydown", function (event) { | |
| if (event.key === "Enter") { | |
| document.getElementById("enter-out").textContent = "enter-" + (13 * 5); | |
| } | |
| }); | |
| </script> | |
| </body> | |
| </html> | |