diff options
| author | Lyssa | 2026-02-09 16:46:50 +0000 |
|---|---|---|
| committer | Lyssa | 2026-02-09 16:46:50 +0000 |
| commit | 0e82d47f233e6804a77d02304db0accbf9aed417 (patch) | |
| tree | a9c326e9bf7a0fc5971989d4a78dcd2b17b8a054 /static/drive.html | |
| parent | 0909d4341a2c2bfd0b9d42b7fcadafd40b54f944 (diff) | |
| download | massgrave.dev-0e82d47f233e6804a77d02304db0accbf9aed417.zip | |
Diffstat (limited to 'static/drive.html')
| -rw-r--r-- | static/drive.html | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/static/drive.html b/static/drive.html new file mode 100644 index 0000000..c6c405d --- /dev/null +++ b/static/drive.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <title>MASSGRAVE Drive 💀</title> + <link rel="stylesheet" href="css/water.min.css"> + </head> + <body> + <h1>📂 MASSGRAVE Drive</h1> + <p>Welcome to MASSGRAVE Drive! You can find your requested file below.</p> + + <h2 style="word-break:break-all" id="file-title">💾 Loading...</h2> + + <p>Please click <i>Download file</i> to download the requested file.</p> + + <form method="GET" action="" id="download-form"> + <button type="submit">Download file</button> + </form> + + <footer>© <span id="year"></span> <a href="https://massgrave.dev">MASSGRAVE</a> 💀</footer> + + <script> + document.getElementById('year').textContent = new Date().getFullYear(); + + const hash = window.location.hash.substring(1); + const filename = decodeURIComponent(hash); + + if (filename) { + document.title = filename + ' | MASSGRAVE Drive'; + document.getElementById('file-title').textContent = '💾 ' + filename; + + const baseUrl = atob('aHR0cHM6Ly9hcmNoaXZlLmlzZG4ubmV0d29yay93aW5kb3dzLw'); + const downloadUrl = baseUrl + encodeURIComponent(filename) + document.getElementById('download-form').action = downloadUrl; + } else { + document.getElementById('file-title').textContent = '💾 No file specified'; + document.querySelector('button[type="submit"]').disabled = true; + } + </script> + </body> +</html>
\ No newline at end of file |
