Archived
1
0
Fork 0
This repository has been archived on 2022-05-09. You can view files and clone it, but cannot push or open issues or pull requests.
ytdlp-web/views/pages/home.ejs
2022-01-30 15:22:46 -05:00

60 lines
1.9 KiB
Text

<!DOCTYPE html>
<html>
<head>
<title><%= config.name %></title>
<%- include("../partials/head") %>
<% if (typeof(hcaptcha)!='undefined') { %>
<script src="https://js.hcaptcha.com/1/api.js" async defer></script>
<script>
hcaptchaSitekey = '<%= hcaptcha %>'
</script>
<% } else { %>
<% var hcaptcha = null %>
<% } %>
</head>
<body>
<div class="modal center">
<a href="/" style="text-decoration: none !important;"><h2><%= config.name %></h2></a>
<p>
Download videos from YouTube and <a rel="noreferer nofollow" href="https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md">many other sites</a>.
</p>
</div>
<div class="main-modal center">
<noscript>
<div class="err">
<p>This webapp requires Javascript.</p>
</div>
</noscript>
<div class="script-loaded " style="width: 100%;">
<input placeholder="Enter any URL." id="url"><br>
<button id="dl-mp4" onclick="dl('v')">Download MP4</button>
<button id="dl-mp3" onclick="dl('a')">Download MP3</button><br>
<% if (hcaptcha!=null) { %>
<div id="h-captcha-cont"></div>
<% } %>
<div id="prg-spin" style="display: none;" class="lds-ring"><div></div><div></div><div></div><div></div></div><br>
<code id="prg"></code>
<div id="md" style="display:none;">
<h2 id="t"></h2>
<img id="th">
</div>
<div id="dl-box" style="display:none;">
<a id="dl-link">
<button>Download</button>
</a>
</div>
</div>
</div>
<div class="footer center">
<%- include("../partials/footer") %>
</div>
<script>
function harold() {
var s = document.createElement("style");
s.innerHTML = `.script-loaded{display:inline-block !important;}`;
document.body.append(s);
}
harold();
</script>
</body>
</html>