113 lines
No EOL
5.3 KiB
Text
113 lines
No EOL
5.3 KiB
Text
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:title" content="{{ title }} (legacy)" />
|
|
<meta property="og:description" content="A simple video downloader without any ad or tracking." />
|
|
<meta property="og:url" content="https://namejeff.xyz/" />
|
|
<meta property="og:image" content="https://namejeff.xyz/asset/jeff.png" />
|
|
<meta name="theme-color" content="#262d2c" />
|
|
<link rel="icon" href="/asset/favicon.ico" type="image/x-icon"/>
|
|
<link rel="shortcut icon" href="/asset/favicon.ico" type="image/x-icon"/>
|
|
<link rel="stylesheet" type="text/css" href="/css/legacy.css">
|
|
<title>{{ title }} (legacy)</title>
|
|
</head>
|
|
<body>
|
|
@if(announcement || (day == '24' || day == '25') && month == '11')
|
|
<div class="announcements">
|
|
@if((day == '24' || day == '25') && month == '11')
|
|
<p>{{ antl.formatMessage('messages.eggXmas') }}</p>
|
|
@endif
|
|
<p>{{ announcement }}</p>
|
|
<p>This part of the website is <strong>legacy</strong> which mean it can be broken at any time!</p>
|
|
</div>
|
|
@endif
|
|
<div class="downloader">
|
|
<h1 class="title">{{ title }} (legacy)</h1>
|
|
<form name="download-form" method="POST" action="/legacy">
|
|
{{ csrfField() }}
|
|
<label for="small">{{ antl.formatMessage('messages.LQ') }}</label>
|
|
<input type="radio" name="quality" id="small" value="small">
|
|
|
|
<label for="high">{{ antl.formatMessage('messages.HQ') }}</label>
|
|
<input type="radio" name="quality" id="high" value="high" checked>
|
|
|
|
<label for="alt">{{ antl.formatMessage('messages.altDL') }}</label>
|
|
<input type="checkbox" name="alt" id="alt" title="Use this if download dosen't work">
|
|
|
|
<label for="feed">{{ antl.formatMessage('messages.feed') }}</label>
|
|
<input type="checkbox" name="feed" id="feed" title="Chcek this to hide the video from public feed">
|
|
<br>
|
|
<br>
|
|
|
|
<input type="text" id="URL" name="URL" class="downloadurl"><button type="button" class="downloadbtn" id="button" onclick="submitDownload()">{{ antl.formatMessage('messages.download') }}</button>
|
|
|
|
<br>
|
|
<br>
|
|
|
|
<label for="mp4">MP4?</label>
|
|
<input type="radio" name="format" value="mp4" id="mp4" checked>
|
|
|
|
<label for="mp3">MP3?</label>
|
|
<input type="radio" name="format" value="mp3" id="mp3">
|
|
|
|
<label for="flac">FLAC?</label>
|
|
<input type="radio" name="format" value="flac" id="flac">
|
|
<p id="msg"></p>
|
|
</form>
|
|
|
|
@if(error)
|
|
<p>{{ errormsg }}</p>
|
|
@endif
|
|
|
|
</div>
|
|
</body>
|
|
|
|
<footer>
|
|
<p>{{ antl.formatMessage('messages.footer') }}</p>
|
|
@if(antl._locale == 'ar')
|
|
<bdi><p>{{ antl.formatMessage('messages.footer2p1') }} <a href="https://github.com/rg3/youtube-dl/">youtube-dl</a> - {{ antl.formatMessage('messages.footer2p2') }} <a href="https://discordapp.com/oauth2/authorize?client_id=377563711927484418&scope=bot&permissions=0">Haha yes</a> - {{ antl.formatMessage('messages.footer2p3') }}: {{ viewCounter }} - {{ antl.formatMessage('messages.footer2p4') }} <a href="https://discord.gg/cNRh5JQ">Supositware#1616</a> {{ antl.formatMessage('messages.footer2p5') }}</p></bdi>
|
|
@else
|
|
<p>{{ antl.formatMessage('messages.footer2p1') }} <a href="https://github.com/rg3/youtube-dl/">youtube-dl</a> - {{ antl.formatMessage('messages.footer2p2') }} <a href="https://discordapp.com/oauth2/authorize?client_id=377563711927484418&scope=bot&permissions=0">Haha yes</a> - {{ antl.formatMessage('messages.footer2p3') }}: {{ viewCounter }} - {{ antl.formatMessage('messages.footer2p4') }} <a href="https://discord.gg/cNRh5JQ">Supositware#1616</a> {{ antl.formatMessage('messages.footer2p5') }}</p>
|
|
@endif
|
|
<p><a href="/">Return to main page</a></p>
|
|
</footer>
|
|
@if(month == '11')
|
|
<script src="JS/snow.js"></script>
|
|
@endif
|
|
<script>
|
|
// If alt download block other settings since they don't work anyway
|
|
document.getElementById('alt').onclick = function() {
|
|
if(document.getElementById('alt').checked) {
|
|
document.getElementById('small').disabled = true;
|
|
document.getElementById('small').checked = false;
|
|
|
|
document.getElementById('mp3').disabled = true;
|
|
document.getElementById('mp3').checked = false;
|
|
document.getElementById('flac').disabled = true;
|
|
document.getElementById('flac').checked = false;
|
|
document.getElementById('mp4').checked = true;
|
|
document.getElementById('high').checked = true;
|
|
document.getElementById('feed').checked = false;
|
|
document.getElementById('feed').disabled = true;
|
|
} else {
|
|
document.getElementById('small').disabled = false;
|
|
document.getElementById('feed').disabled = false;
|
|
document.getElementById('mp3').disabled = false;
|
|
document.getElementById('flac').disabled = false;
|
|
}
|
|
}
|
|
|
|
function submitDownload() {
|
|
console.log('clicked')
|
|
let frm = document.getElementsByName('download-form')[0];
|
|
frm.submit();
|
|
document.getElementById('msg').innerHTML = '{{ antl.formatMessage('messages.dlStart') }}'
|
|
frm.reset();
|
|
return false;
|
|
}
|
|
</script>
|
|
</html> |