HeshamTB
b88ca836ef
- Does not check if the link is actually a video. Change isValidURL() for better validation Signed-off-by: HeshamTB <hishaminv@gmail.com>
12 lines
401 B
HTML
12 lines
401 B
HTML
<div hx-target="this" hx-swap="outerHTML">
|
|
<label>
|
|
Link
|
|
<input name="URL" id="URL" type="url" hx-post="/valid-link"
|
|
aria-invalid="{{ if .Valid }}false{{ else }}true{{ end }}"
|
|
required value="{{ .URL }}"
|
|
hx-indicator="#url-validation-progress"
|
|
>
|
|
</label>
|
|
<progress class="htmx-indicator" id="url-validation-progress"></progress>
|
|
</div>
|