forked from xyTom/Url-Shorten-Worker
-
Notifications
You must be signed in to change notification settings - Fork 29
/
index.html
192 lines (185 loc) · 6.39 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="txt/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha256-L/W5Wfqfa0sdBNIKN9cG6QA5F2qx4qICmU2VgLruv9Y=" crossorigin="anonymous">
<title>Shorter URL Demo(CloudFlare Worker)</title>
<style>
* {
margin: 0;
padding: 0;
cursor: default;
}
html, body {
height: 100%;
}
body {
display: -webkit-box;
display: flex;
-webkit-box-align: center;
align-items: center;
-webkit-box-pack: center;
justify-content: center;
vertical-align: center;
flex-wrap: wrap;
align-content: center;
color: #2a2b2c;
background-color: #ebedee;
overflow: hidden;
}
.card {
background-color: transparent;
width: 768px;
}
.card-text {
text-align: center;
}
.card-text > a {
text-decoration: none;
color: #007bff;
}
.card-text > a {
cursor: pointer;
}
.form-control {
cursor: auto;
}
@media (max-width: 769px) {
.card {
width: 80%;
}
}
@media (max-width: 420px) {
.card {
width: 95%;
}
}
@media (prefers-color-scheme: dark) {
body {
color: #d9d9d9;
background: #1b1b1b;
}
.card {
background-color: #252d38;
}
}
</style>
<SCRIPT language="JavaScript">
var password;
var pass1="cool";
password=prompt('Please enter the password to continue! There is a space in the textbox!',' ');
if (password!=pass1)
{window.location="https://blog.51sec.org";}
</SCRIPT>
</head>
<body>
<div class="card">
<h5 class="card-header"Shorten your cool URLs!</h5>
<div class="card-body">
<h5 class="card-title">Please enter a URL to be shortened to a cool one :</h5>
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="Example: https://blog.51sec.org/" id="text">
<div class="input-group-append">
<button class="btn btn-primary" type="button" onclick='shorturl()' id="searchbtn">Shorten it</button>
</div>
</div>
<div class="card-text">
<a href="https://github.com/51sec/Url-Shorten-By-CF-Worker/" target="_self">Fork me on GitHub</a>
<p> Copyright ©2018-2050 <a href="https://www.51sec.org" target="_blank">51Sec</a>. </p>
<p id="notice"><a href="https://blog.51sec.org"><img src="https://photos.51sec.org/file/test1-51sec/2021/09/216x194.png" alt="51Sec Blog Site" style="display: block; margin-left: auto; margin-right: auto;" width="108" height="97" /> </a> </p>
</div>
<p id="notice"></p>
</div>
</div>
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Result</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" id="result">No result</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick='copyurl("result")' data-toggle="popover" data-placement="bottom" data-content="Copied!">Copy</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js" integrity="sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha256-WqU1JavFxSAMcLP2WIOI+GB2zWmShMI82mTpLDcqFUg=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/gh/51sec/Url-Shorten-By-CF-Worker@main/main.js" crossorigin="anonymous"></script>
<div class="separator" style="clear: both; text-align: center;">
<a
href="https://www.youtube.com/c/NetSec"
style="margin-left: 1em; margin-right: 1em;"
target="_blank"
>
<img alt="51sec YouTube"
border="0"
data-original-height="500"
data-original-width="115"
height="115"
src="https://image.similarpng.com/very-thumbnail/2020/05/Logo-YouTube-realistic-icon-transparent-PNG.png"
width="115"
/>
</a>
<a
href="https://sites.51sec.org"
style="margin-left: 1em; margin-right: 1em;"
target="_blank"
>
<img alt="51sec Sites"
border="0"
data-original-height="500"
data-original-width="115"
height="115"
src="https://photos.51sec.org/file/test1-51sec/2021/10/sites%20-%20round%20-500.png"
width="115"
/>
</a>
<a href="https://nav.51sec.org" style="margin-left: 1em; margin-right: 1em;">
<img alt="51sec Navigation"
border="0"
data-original-height="350"
data-original-width="115"
height="115"
src="https://photos.51sec.org/file/test1-51sec/2021/10/Black%2C%20White%20and%20Yellow%20Lightning%20-%20Round%20corner-350.png"
width="115"
/>
</a>
<a
href="https://od.51sec.org"
style="margin-left: 1em; margin-right: 1em;"
target="_blank"
>
<img alt="51sec OneDrive"
border="0"
data-original-height="500"
data-original-width="115"
height="115"
src="https://photos.51sec.org/file/test1-51sec/2021/10/OneDrive%20OD%2051sec-roundcorner%20-%20Copy.png"
width="115"
/>
</a>
<a
href="https://gd.itprosec.com"
style="margin-left: 1em; margin-right: 1em;"
target="_blank"
>
<img alt="51sec Google Drive"
border="0"
data-original-height="500"
data-original-width="115"
height="115"
src="https://photos.51sec.org/file/test1-51sec/2021/10/Download%20-roundcorner%20500x500.png"
width="115"
/>
</a>
</div>
</body>
</html>