jeff-downloader/resources/views/legacy.edge

113 lines
5.4 KiB
Text
Raw Permalink Normal View History

2019-12-03 21:18:40 +01:00
<!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">
2020-01-24 22:04:52 +01:00
<meta property="og:title" content="{{ antl.formatMessage('messages.title') }} v{{ version }} (legacy)" />
2019-12-03 21:18:40 +01:00
<meta property="og:description" content="A simple video downloader without any ad or tracking." />
<meta property="og:url" content="https://namejeff.xyz/" />
2019-12-03 21:30:21 +01:00
<meta property="og:image" content="https://namejeff.xyz/asset/jeff.png" />
2019-12-03 21:18:40 +01:00
<meta name="theme-color" content="#262d2c" />
2019-12-03 21:30:21 +01:00
<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">
2020-01-24 22:04:52 +01:00
<title>{{ antl.formatMessage('messages.title') }} v{{ version }} (legacy)</title>
2019-12-03 21:18:40 +01:00
</head>
<body>
@if(announcement || (day == '24' || day == '25') && month == '11')
<div class="announcements">
@if((day == '24' || day == '25') && month == '11')
2020-01-24 15:28:26 +01:00
<p>{{ antl.formatMessage('messages.eggXmas') }}</p>
2019-12-03 21:18:40 +01:00
@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">
2020-01-24 22:04:52 +01:00
<h1 class="title">{{ antl.formatMessage('messages.title') }} v{{ version }} (legacy)</h1>
2019-12-03 21:18:40 +01:00
<form name="download-form" method="POST" action="/legacy">
{{ csrfField() }}
2020-01-24 15:28:26 +01:00
<label for="small">{{ antl.formatMessage('messages.LQ') }}</label>
2019-12-03 21:18:40 +01:00
<input type="radio" name="quality" id="small" value="small">
2020-01-24 15:28:26 +01:00
<label for="high">{{ antl.formatMessage('messages.HQ') }}</label>
2019-12-03 21:18:40 +01:00
<input type="radio" name="quality" id="high" value="high" checked>
2020-01-24 15:28:26 +01:00
<label for="alt">{{ antl.formatMessage('messages.altDL') }}</label>
2019-12-03 21:18:40 +01:00
<input type="checkbox" name="alt" id="alt" title="Use this if download dosen't work">
2020-01-24 15:28:26 +01:00
<label for="feed">{{ antl.formatMessage('messages.feed') }}</label>
2019-12-03 21:18:40 +01:00
<input type="checkbox" name="feed" id="feed" title="Chcek this to hide the video from public feed">
<br>
<br>
2020-01-24 15:28:26 +01:00
<input type="text" id="URL" name="URL" class="downloadurl"><button type="button" class="downloadbtn" id="button" onclick="submitDownload()">{{ antl.formatMessage('messages.download') }}</button>
2019-12-03 21:18:40 +01:00
<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>
2020-01-24 15:28:26 +01:00
<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
2019-12-03 21:18:40 +01:00
<p><a href="/">Return to main page</a></p>
</footer>
@if(month == '11')
2019-12-03 22:58:24 +01:00
<script src="JS/snow.js"></script>
2019-12-03 21:18:40 +01:00
@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();
2020-01-24 15:28:26 +01:00
document.getElementById('msg').innerHTML = '{{ antl.formatMessage('messages.dlStart') }}'
2019-12-03 21:18:40 +01:00
frm.reset();
return false;
}
</script>
</html>