-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path402.html
77 lines (71 loc) · 2.13 KB
/
402.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
76
77
<!DOCTYPE html>
<meta name="robots" content="noindex">
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>402 Payment Required</title>
<style>
body {
background: #081421;
color: #d3d7de;
font-family: "Courier new";
font-size: 18px;
line-height: 1.5em;
cursor: default;
white-space: nowrap;
}
.code-area {
position: absolute;
width: 320px;
min-width: 320px;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.code-area>span {
display: block;
}
@media screen and (max-width: 320px) {
.code-area {
font-size: 5vw;
min-width: auto;
width: 95%;
margin: auto;
padding: 5px;
padding-left: 10px;
line-height: 6.5vw;
}
}
</style>
</head>
<body>
<div class="code-area">
<span style="color: #777;font-style:italic;">
// 402 Payment Required.
</span>
<span>
<span style="color:#d65562;">if</span>
(
<span style="color:#4ca8ef;">!</span>
<span style="font-style: italic;color:#bdbdbd;">allowed</span>) {
</span>
<span>
<span style="padding-left: 15px;color:#2796ec">
<i style="width: 10px;display:inline-block"></i>throw
</span>
<span>
(
<span id="fileName" style="color: #a6a61f">"Payment Required"</span>);
</span>
<span style="display:block">}</span>
</span>
</div>
<script type="text/javascript">
const params = new URLSearchParams(location.search.slice(1));
const files = params.get('file').split('/');
document.getElementById('fileName').textContent = `"${files[files.length - 1] || 'File'} - Payment Required"`
</script>
</body>
</html>