mirror of
https://git.eta.st/eta/rsp6-decoder.git
synced 2024-11-21 15:05:41 +00:00
make form a form
This commit is contained in:
parent
74f6c0268d
commit
8c87ef28b4
@ -78,12 +78,14 @@
|
||||
</summary>
|
||||
<div class="govuk-details__text">
|
||||
<p class="govuk-body">Does the barcode scanner just not want to work? Use another Aztec barcode scanner (there are plenty on the mobile app stores), and then copy the result into the bottom form.</p>
|
||||
<div class="govuk-form-group" style="margin-bottom: 10px;">
|
||||
<input class="govuk-input" id="raw-text-in" name="raw-text-in" type="text">
|
||||
</div>
|
||||
<button class="govuk-button" data-module="govuk-button" id="raw-text-btn">
|
||||
Hope for the best
|
||||
</button>
|
||||
<form id="raw-text-form">
|
||||
<div class="govuk-form-group" style="margin-bottom: 10px;">
|
||||
<input class="govuk-input" id="raw-text-in" name="raw-text-in" type="text">
|
||||
</div>
|
||||
<button class="govuk-button" data-module="govuk-button" type="submit">
|
||||
Hope for the best
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</details>
|
||||
<div id="video-container" style="display: none;">
|
||||
|
@ -266,7 +266,8 @@ function onload() {
|
||||
console.log('[+] Video started playing');
|
||||
video_div.scrollIntoView();
|
||||
});
|
||||
document.getElementById('raw-text-btn').addEventListener('click', () => {
|
||||
document.getElementById('raw-text-form').addEventListener('submit', (e) => {
|
||||
e.preventDefault();
|
||||
console.log("[+] Raw text input pressed");
|
||||
decode_banner.style.display = "none";
|
||||
ticket_content.style.display = "none";
|
||||
|
Loading…
Reference in New Issue
Block a user