viddl/templates/download.html
HeshamTB 2feda54fe4 Revert "templates: download: force css to point to https"
This reverts commit 3c5aa3d575.

	isTLS is now set correctly so use it in html templates for assets
	and media
2023-09-13 11:37:28 +03:00

32 lines
1.6 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="robots" content="follow, index, max-snippet:-1, max-video-preview:-1, max-image-preview:large"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Download or playback videos and music in full quality">
<meta name="keywords" content="Download, Youtube, yt-dlp, MP3, Convert">
<link rel="stylesheet" href="{{ if .IsTLS }}https{{ else }}http{{ end }}://{{ .AppURL }}/static/static/css/pico.min.css">
<script src="https://unpkg.com/htmx.org@1.9.5"></script>
<title>Viddle your fiddle</title>
</head>
<main class="container">
<form hx-post="/download" hx-target="#get-btn" hx-swap="outerHTML" hx-indicator="#progress">
<label for="URL">Link</label>
<div class="grid">
<input type="url" id="URL" name="URL" placeholder="Video Link" required>
<!-- Select -->
<select required>
<option value="" disabled selected>Format</option>
{{ range .Formats }} <option>{{ .VideoRes }}</option>{{ end }}
</select>
</div>
<button id="get-btn">Get
<!-- <a class="htmx-indicator" href="#" aria-busy="true"></a> -->
</button>
</form>
<progress class="htmx-indicator" id="progress"></progress>
<script data-cfasync="false" type="text/javascript" data-adel="atag" src="//acscdn.com/script/atg.js" czid="tfsym8rbfg"></script>
</main>
</html>