init
This commit is contained in:
40
templates/success.html
Normal file
40
templates/success.html
Normal file
@@ -0,0 +1,40 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Uploaded</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h2>File uploaded</h2>
|
||||
|
||||
<p>
|
||||
Download page:<br>
|
||||
<input id="pageLink" readonly size="60">
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Direct download:<br>
|
||||
<input id="directLink" readonly size="60">
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Delete link:<br>
|
||||
<input id="deleteLink" readonly size="60">
|
||||
</p>
|
||||
|
||||
<script>
|
||||
const params = new URLSearchParams(location.search)
|
||||
const id = params.get("id")
|
||||
|
||||
const page = `${location.origin}/d/${id}`
|
||||
const direct = `${location.origin}/f/${id}`
|
||||
|
||||
document.getElementById("pageLink").value = page
|
||||
document.getElementById("directLink").value = direct
|
||||
|
||||
// deletionID requires backend change to return it
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user