audio-video-links-generator/index.html

160 lines
3.6 KiB
HTML
Raw Permalink Normal View History

2022-01-09 14:19:32 +01:00
<html lang="en">
<head>
<meta charset="UTF-8">
<meta
http-equiv="X-UA-Compatible"
content="IE=edge"
>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>Audio/video links generator</title>
<link
rel="stylesheet"
href="style.css"
>
<script src="script.js"></script>
</head>
<body>
<section>
<div class="inputs">
2024-01-06 16:07:52 +01:00
<h1>Episode</h1>
2022-01-09 14:19:32 +01:00
<div class="input">
2024-01-06 16:07:52 +01:00
<label for="name">Episode name</label>
2022-01-09 14:19:32 +01:00
<input
type="text"
name="episode-name"
id="episode_name"
2024-01-06 16:07:52 +01:00
value="Generic name - ICD #999"
placeholder="Generic name - ICD #999"
2022-01-09 14:19:32 +01:00
oninput="generateHtml();"
>
</div>
2024-01-06 16:07:52 +01:00
<fieldset>
<legend>Choose visible elements:</legend>
<div class="input-checkbox">
<input
type="checkbox"
id="castopod-player-visible"
name="castopod-player-visible"
checked
oninput="generateHtml();"
/>
<label for="castopod-player-visible">Castopod player</label>
</div>
<div class="input-checkbox">
<input
type="checkbox"
id="peertube-player-visible"
name="peertube-player-visible"
oninput="generateHtml();"
/>
<label for="peertube-player-visible">PeerTube player</label>
</div>
<div class="input-checkbox">
<input
type="checkbox"
id="audio-links-visible"
name="audio-links-visible"
checked
oninput="generateHtml();"
/>
<label for="audio-links-visible">Audio links</label>
</div>
<div class="input-checkbox">
<input
type="checkbox"
id="video-links-visible"
name="video-links-visible"
checked
oninput="generateHtml();"
/>
<label for="video-links-visible">Video links</label>
</div>
</fieldset>
2022-01-09 14:19:32 +01:00
<div class="input">
<label for="castopod">Castopod episode url</label>
2022-01-09 14:19:32 +01:00
<input
type="text"
name="castopod-episode-id"
id="castopod"
value="https://podcast.internet-czas-dzialac.pl/@icd/episodes/icd-weekend-4-wizja-nowych-wyszukiwarek-yt-dokleja-sledzace-ciagi-znakow-a-firefox-je-usuwa"
placeholder="https://podcast.internet-czas-dzialac.pl/@icd/episodes/icd-weekend-4-wizja-nowych-wyszukiwarek-yt-dokleja-sledzace-ciagi-znakow-a-firefox-je-usuwa"
2022-01-09 14:19:32 +01:00
oninput="generateHtml();"
>
</div>
<div class="input">
<label for="peertube">Peertube video url</label>
<input
type="text"
name="peertube-video-id"
id="peertube"
2024-01-06 16:07:52 +01:00
value="https://video.internet-czas-dzialac.pl/w/a8sThShNukC8Vbm1MHZ5Ta"
placeholder="https://video.internet-czas-dzialac.pl/w/a8sThShNukC8Vbm1MHZ5Ta"
2022-01-09 14:19:32 +01:00
oninput="generateHtml();"
>
</div>
2022-01-09 15:48:24 +01:00
<div class="input">
2024-01-06 16:07:52 +01:00
<label for="youtube">Youtube video url</label>
2022-01-09 14:19:32 +01:00
<input
type="text"
2024-01-06 16:07:52 +01:00
name="youtube-video-id"
id="youtube"
value="https://www.youtube.com/watch?v=3MC-_83Zqik"
placeholder="https://www.youtube.com/watch?v=3MC-_83Zqik"
2022-01-09 14:19:32 +01:00
oninput="generateHtml();"
>
2022-01-09 15:48:24 +01:00
</div>
2022-01-09 14:19:32 +01:00
<div class="input">
2024-01-06 16:07:52 +01:00
<label for="odysee">Odysee video url (optional)</label>
2022-01-09 14:19:32 +01:00
<input
type="text"
2024-01-06 16:07:52 +01:00
name="odysee-video-id"
id="odysee"
placeholder="https://odysee.com/@internetczasdzialac:6/internet-of-things,-czy-internet-of-shit:1"
2022-01-09 14:19:32 +01:00
oninput="generateHtml();"
>
</div>
</div>
<div class="result">
<div class="output">
<h1>Output</h1>
<textarea
name="output"
id="output"
></textarea>
</div>
2024-01-06 16:07:52 +01:00
<button onclick="copyHtml()">Copy HTML code</button>
2022-01-09 14:19:32 +01:00
2024-01-06 16:07:52 +01:00
<h1>Preview (render like in Ghost)</h1>
2022-01-09 14:19:32 +01:00
<div class="preview">
</div>
</div>
</section>
<script>
window.addEventListener("DOMContentLoaded", function () {
2022-01-09 14:19:32 +01:00
generateHtml()
}, false);
</script>
2022-01-09 14:19:32 +01:00
</body>
</html>