-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
75 lines (75 loc) · 2.61 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
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html>
<head>
<title>arf.sh</title>
<meta charset="utf-8" />
<meta name="description" content="A private file host.">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#1c1624">
<meta property="og:type" content="website">
<meta property="og:title" content="Arff!">
<meta property="og:description" content="A private file host.">
<meta property="og:theme-color" content="#1c1624">
<script>
function submitForm(event) {
event.preventDefault();
const urlParams = new URLSearchParams(window.location.search);
const key = urlParams.get('key');
const formData = new FormData(event.target);
const xhr = new XMLHttpRequest();
xhr.open('POST', 'https://arf.sh');
xhr.setRequestHeader('Authorization', 'Bearer ' + key);
xhr.send(formData);
}
</script>
<style>
body {
color: oklch(94.11% 0.0397 314.07);
background-color: oklch(21.56% 0.0286 303.92);
font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 1rem;
padding: 0;
margin: 0;
white-space: nowrap;
}
div {
margin: 1vw;
position: absolute;
top: 30%;
left: 50%;
transform: translate(-50%, -50%);
}
a {
color: oklch(78.23% 0.1513 336.5)
}
footer {
padding: 1rem;
font-size: 0.75rem;
text-align: center;
}
</style>
</head>
<body>
<div>
<h2>Arff! - A private file host.</h2>
<p>
Powered by Cloudflare <a href="https://workers.cloudflare.com/">Workers</a>,
<a href="https://www.cloudflare.com/developer-platform/r2/">R2</a>,
and <a href="https://developers.cloudflare.com/kv/">KV</a>.
<br />
Abuse contact: <a href="mailto:[email protected]">[email protected]</a>
</p>
<form onsubmit="submitForm(event)" enctype="multipart/form-data">
<label>Web Uploader (key required):</label><br />
<input class="form-control" type="file" name="file" style="width:250px;"><br />
<input class="form-control" type="submit" value="Submit">
</form>
<footer>
<p>
<a href="https://github.com/ezrizhu/arff">Source Code</a>
Released under the MIT License
</p>
</footer>
</div>
</body>
</html>