diff options
| author | Lyssa | 2026-02-09 14:30:32 +0000 |
|---|---|---|
| committer | Lyssa | 2026-02-09 14:30:32 +0000 |
| commit | 0909d4341a2c2bfd0b9d42b7fcadafd40b54f944 (patch) | |
| tree | d0bd1ee5c445f8dcc9bec2da69c6e3ad6a716a5b /static/redirect.html | |
| parent | 78c3dd595051c82a5d3c77aabd95b2f686b84e92 (diff) | |
| download | massgrave.dev-0909d4341a2c2bfd0b9d42b7fcadafd40b54f944.zip | |
Move download flow to this site from drive.massgrave.dev
Diffstat (limited to 'static/redirect.html')
| -rw-r--r-- | static/redirect.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/static/redirect.html b/static/redirect.html new file mode 100644 index 0000000..133bbd9 --- /dev/null +++ b/static/redirect.html @@ -0,0 +1,40 @@ +<!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 downloadUrl = 'https://archive.isdn.network/windows/' + 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 |
