2022-09-26 22:09:38 -07:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<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>monofile</title>
|
|
|
|
|
2022-12-27 11:52:11 -08:00
|
|
|
<meta name="og:site_name" content="$Version">
|
2022-09-26 22:09:38 -07:00
|
|
|
<meta name="application-name" content="monofile">
|
|
|
|
<meta name="description" content="Discord-based filesharing">
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
* {
|
|
|
|
font-family: sans-serif;
|
|
|
|
}
|
|
|
|
h1,h2 {
|
|
|
|
text-align:center;
|
|
|
|
}
|
|
|
|
#content {
|
|
|
|
position:fixed;
|
|
|
|
left:50%;
|
|
|
|
top:50%;
|
|
|
|
transform:translate(-50%,-50%);
|
|
|
|
background-color:white;
|
|
|
|
width:450px;
|
|
|
|
/*height:100%;*/
|
|
|
|
}
|
|
|
|
body {
|
|
|
|
background-color: darkgray;
|
|
|
|
}
|
|
|
|
#btnContainer {
|
|
|
|
width:calc( 100% - 50px );
|
|
|
|
height:50px;
|
|
|
|
position:relative;
|
|
|
|
left:50%;
|
|
|
|
transform:translate(-50%,0);
|
|
|
|
}
|
2022-12-29 17:12:44 -08:00
|
|
|
|
|
|
|
button {
|
2022-09-26 22:09:38 -07:00
|
|
|
color:black;
|
|
|
|
font-weight:bold;
|
|
|
|
border:none;
|
|
|
|
position:absolute;
|
|
|
|
font-size:20px;
|
|
|
|
}
|
2022-12-29 17:12:44 -08:00
|
|
|
|
|
|
|
button:hover {
|
2022-09-26 22:09:38 -07:00
|
|
|
border: 1px solid gray;
|
|
|
|
}
|
2022-12-29 17:12:44 -08:00
|
|
|
|
|
|
|
#uploadButton {
|
|
|
|
width:calc( 100% - 50px );
|
|
|
|
height:100%;
|
|
|
|
background-color: #66AAFF;
|
|
|
|
left:0px;
|
|
|
|
top:0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#optionsButton {
|
|
|
|
width:50px;
|
|
|
|
height:100%;
|
|
|
|
background-color: #AAAAAA;
|
|
|
|
left:calc( 100% - 50px );
|
|
|
|
top:0px;
|
|
|
|
font-size:15px;
|
|
|
|
}
|
|
|
|
|
2022-09-26 22:09:38 -07:00
|
|
|
.note {
|
|
|
|
padding:5px;
|
|
|
|
position:relative;
|
2022-12-29 17:12:44 -08:00
|
|
|
width:calc( 100% - 62px );
|
2022-09-26 22:09:38 -07:00
|
|
|
left:25px;
|
|
|
|
border:1px solid #AAAAAAFF;
|
|
|
|
border-radius: 8px;
|
|
|
|
background-color: #AAAAAA66;
|
|
|
|
}
|
|
|
|
|
2022-12-29 17:12:44 -08:00
|
|
|
/* this is horrible css lmao */
|
|
|
|
|
|
|
|
#options > input {
|
|
|
|
font-family:monospace;
|
|
|
|
width:250px;
|
|
|
|
font-size:14px;
|
|
|
|
border: 1px solid #777777;
|
|
|
|
background-color:#AAAAAA;
|
|
|
|
outline:none;
|
|
|
|
text-align:center;
|
|
|
|
}
|
|
|
|
|
|
|
|
#options {
|
|
|
|
height:30px;
|
|
|
|
display:none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#customId {
|
|
|
|
position:absolute;
|
|
|
|
left:50%;
|
|
|
|
top:50%;
|
|
|
|
transform:translate(-50%,-50%)
|
|
|
|
}
|
|
|
|
|
2022-09-26 22:09:38 -07:00
|
|
|
@media only screen and (max-width: 450px) {
|
|
|
|
#content {
|
|
|
|
position:fixed;
|
|
|
|
left:0%;
|
|
|
|
top:0%;
|
|
|
|
transform:translate(0%,0%);
|
|
|
|
background-color:white;
|
|
|
|
width:100%;
|
|
|
|
height:100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2022-11-16 07:07:07 -08:00
|
|
|
<input type="text" id="CopyTB" value="" readonly style="opacity:0;width:10px;height:0%;">
|
2022-09-26 22:09:38 -07:00
|
|
|
<div id="content">
|
|
|
|
<h1>
|
2022-12-27 11:52:11 -08:00
|
|
|
monofile<span style="font-style:italic;font-weight:bold;font-size:16px;color:#999999"> $Version</span>
|
2022-09-26 22:09:38 -07:00
|
|
|
</h1>
|
|
|
|
<h2><em>Discord-based file sharing</em></h2>
|
|
|
|
<div class="note" style="border-color:#FFAAAAFF;background-color:#FFAAAA66">
|
|
|
|
Before sharing files, please remember:
|
|
|
|
<ul>
|
|
|
|
<li>Do NOT share sensitive information via monofile</li>
|
|
|
|
<li>Do NOT share illegal content via monofile</li>
|
|
|
|
<li>The owner of this instance reserves the right to remove your files</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div style="width:100%;height:25px"></div>
|
2022-12-29 17:12:44 -08:00
|
|
|
<div id="btnContainer">
|
|
|
|
<button id="uploadButton">$UploadButtonText</button>
|
|
|
|
<button id="optionsButton">• • •</button>
|
|
|
|
</div>
|
|
|
|
<div id="options" class="note" style="border-radius:0px;">
|
|
|
|
<input id="customId" autocomplete="off" placeholder = "custom id (30char, no spaces)" maxlength="30">
|
|
|
|
</div>
|
2022-09-26 22:09:38 -07:00
|
|
|
<p style="font-family:monospace;position:relative;width:calc( 100% - 50px );left:25px;text-align: center;">
|
|
|
|
Max filesize on instance: $MaxInstanceFilesize
|
2022-12-31 20:06:09 -08:00
|
|
|
<br />
|
|
|
|
Hosting <strong style="font-family:monospace">$FileNum</strong> files
|
2022-09-26 22:09:38 -07:00
|
|
|
</p>
|
2022-12-29 17:12:44 -08:00
|
|
|
<p style="font-family:monospace;position:relative;width:calc( 100% - 50px );left:25px;text-align: center;font-size:12px;color:gray;">made by nbitzz — <a style="color:gray;font-family:monospace;font-size:12px;" href="https://github.com/nbitzz/monofile">github</a> — <a style="color:gray;font-family:monospace;font-size:12px;" href="$otherPath">$otherText</a></p>
|
2022-09-26 22:09:38 -07:00
|
|
|
<div style="width:100%;height:25px"></div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
|
2022-12-29 17:12:44 -08:00
|
|
|
<!-- bad thing to do but i'm being rushed -->
|
2022-09-27 16:39:25 -07:00
|
|
|
|
2022-12-29 17:12:44 -08:00
|
|
|
<script>
|
|
|
|
let uploading = false
|
|
|
|
const updateBtnTxt = (btntxt) => {document.getElementById("btnContainer").innerHTML = `<div class="note" style="width:calc( 100% - 10px );height:calc( 100% - 10px );position:absolute;left:0px;top:0px;"><p style="font-family:monospace;position:relative;width:calc( 100% - 50px );left:25px;text-align: center;">${btntxt}</p></div>`}
|
|
|
|
const getOptionsForUploading = () => {
|
|
|
|
uploading = true
|
|
|
|
document.getElementById("options").style.display = "none"
|
|
|
|
|
|
|
|
return {
|
|
|
|
uploadId: document.getElementById("customId").value
|
2022-09-26 22:09:38 -07:00
|
|
|
}
|
2022-12-29 17:12:44 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
document.getElementById("optionsButton").addEventListener("click",() => {
|
|
|
|
let display = document.getElementById("options").style.display
|
|
|
|
if (!uploading) document.getElementById("options").style.display = !display || display == "none" ? "block" : "none"
|
2022-09-26 22:09:38 -07:00
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
2022-12-29 17:12:44 -08:00
|
|
|
<script src="/static/script/$Handler.js"></script>
|
|
|
|
|
2022-09-26 22:09:38 -07:00
|
|
|
</html>
|