viddl/templates/url-validation.html
HeshamTB b88ca836ef feat: basic active url validation:
- Does not check if the link is actually
	a video. Change isValidURL() for better
	validation

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2023-09-13 13:13:13 +03:00

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>