mirror of
https://github.com/pacnpal/steadirect.git
synced 2025-12-20 04:01:09 -05:00
update index.html: change form element from div to form for improved semantics and functionality
This commit is contained in:
@@ -246,7 +246,7 @@
|
|||||||
<section aria-labelledby="converter-description">
|
<section aria-labelledby="converter-description">
|
||||||
<p id="converter-description">Convert protocol URLs (like Steam invites) to shareable HTTPS links that work on any platform.</p>
|
<p id="converter-description">Convert protocol URLs (like Steam invites) to shareable HTTPS links that work on any platform.</p>
|
||||||
|
|
||||||
<div role="form" aria-labelledby="form-title">
|
<form aria-labelledby="form-title" onsubmit="event.preventDefault(); convertUrl();">
|
||||||
<h2 id="form-title" class="visually-hidden">URL Converter Form</h2>
|
<h2 id="form-title" class="visually-hidden">URL Converter Form</h2>
|
||||||
|
|
||||||
|
|
||||||
@@ -257,9 +257,9 @@
|
|||||||
placeholder="steam://joinlobby/123456/987654321"
|
placeholder="steam://joinlobby/123456/987654321"
|
||||||
aria-label="Enter Steam lobby URL to convert"
|
aria-label="Enter Steam lobby URL to convert"
|
||||||
autocomplete="off" />
|
autocomplete="off" />
|
||||||
<button onclick="convertUrl()" aria-label="Convert URL">Convert</button>
|
<button type="submit" aria-label="Convert URL">Convert</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<output id="result" aria-live="polite"></output>
|
<output id="result" aria-live="polite"></output>
|
||||||
|
|||||||
Reference in New Issue
Block a user