-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
66 lines (66 loc) · 6.27 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<style>
html{
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ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ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==);
background-color: #000000;
}
</style>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"></head><body>
<h1 style="padding-left: 10%; padding-top: 10%; font: 3rem 'MutatorSans', sans-serif; font-weight: inherit; color: white">dRippr</h1>
<form action="/submit" method="POST" style="padding-left:10%; padding-top: 3%;">
<input id="link" style="border: 2px solid white; border-radius: 5px; background: radial-gradient(circle at 50%,#1F1F1F,#1D1D1D); width: 65%; height: 33px; color: white; padding-left: 10px" type="text" id="magnet-input" name="magnet" placeholder="Enter magnet link">
<input style="border: 2px solid white; border-radius: 5px; width: 15%; height: 33px; background-color: #00EB72; color: white; font-weight:bolder" type="submit" value="Download"><br>
<div style="padding-top:3px">
<input id="password" style="border: 2px solid white; border-radius: 5px; background: radial-gradient(circle at 50%,#1F1F1F,#1D1D1D); width: 25%; height: 33px; color: white; padding-left: 10px" name="password" placeholder="Password" value="" onkeypress="document.getElementById('password').style.boxShadow = ''">
<button type="button" style="border: 2px solid white; border-radius: 5px; width: 15%; height: 33px; background-color: #00EB72; color: white; font-weight:bolder" onclick="document.getElementById('password').value = '';">Clear</button>
</div>
</form>
<div style="display: flex; justify-content: center;">
<button style="border: 2px solid white; border-radius: 5px; background-color: #331D52; height: 33px; color: white; font-weight:bolder" onclick="window.location = '/list';">List Of All Files</button>
<div style="padding-left: 3px">
<button style="border: 2px solid white; border-radius: 5px; background-color: #331D52; height: 33px; color: white; font-weight:bolder" onclick="withPassRedirect();">List Of Your Files</button>
</div>
</div>
<p onclick="toggleAdvanced();" style="color:white;"><u>Advanced</u></p>
<form action="/submitlocal" method="POST" enctype="multipart/form-data" id="localupload">
<label for="files" style="border: 2px solid white; border-radius: 5px;font-size: 0.8em;background-color: #00EB72; color: white; font-weight:bolder; font-size: 1em">
Select Files
</label><br>
<input type="file" id="files" name="files" multiple style="display: none;">
<p style="color: white; display:inline-block;">Save File(s) In Folder? :</p>
<input type="checkbox" name="folderCheck" id="fCheck" onchange="toggleFName();">
<input type="text" name="folderName" placeholder="Folder Name" id="folderName" style="border: 2px solid white; border-radius: 5px; background: radial-gradient(circle at 50%,#1F1F1F,#1D1D1D); width: 25%; height: 33px; color: white; padding-left: 10px"><br>
<input id="password2" style="border: 2px solid white; border-radius: 5px; background: radial-gradient(circle at 50%,#1F1F1F,#1D1D1D); width: 25%; height: 33px; color: white; padding-left: 10px" name="password" placeholder="Password" value="" onkeypress="document.getElementById('password2').style.boxShadow = ''">
<button type="button" style="border: 2px solid white; border-radius: 5px; width: 15%; height: 33px; background-color: #00EB72; color: white; font-weight:bolder" onclick="document.getElementById('password2').value = '';">Clear</button><br><br>
<input type="submit" style="border: 2px solid white; border-radius: 5px; width: 15%; height: 33px; background-color: #00EB72; color: white; font-weight:bolder" value="Submit">
</form>
</body>
</html>
<script>
function toggleFName(){
if(!document.getElementById("fCheck").checked){
document.getElementById("folderName").readOnly = true;
document.getElementById("folderName").value = "";
} else {
document.getElementById("folderName").readOnly = false;
}
}
var advTog = 1;
function toggleAdvanced(){
if(advTog){
document.getElementById("localupload").hidden = true;
} else {
document.getElementById("localupload").hidden = false;
}
advTog = !advTog;
}
function withPassRedirect(){
if(document.getElementById("password").value != ''){
window.location = '/list?pass='+document.getElementById("password").value;
}else{
document.getElementById("password").style.boxShadow = "inset 0 0 5px 5px #822"
}
}
toggleFName();
toggleAdvanced();
</script>