-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathshort.html
160 lines (144 loc) · 5.3 KB
/
short.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
<!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://raw.lytv.gq/dist/css/bootstrap.min.css" integrity="sha256-L/W5Wfqfa0sdBNIKN9cG6QA5F2qx4qICmU2VgLruv9Y=" crossorigin="anonymous">
<title>短链</title>
<style>
* {
margin: 0;
padding: 0;
cursor: default;
}
body {
background: url(http://lytv.pp.ua);
opacity: 0.8;
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;
background-size: cover ;
color: #2a2b2c;
background-color: #ebedee;
}
.card {
background-color: rgba(255,255,255,0.9);
padding: 20px;
border-radius: 10px;
width: 100%;
height: 100%
margin: 0;
}
.dibu_footer{
height: ;
line-height: ;
position: fixed;
bottom: 0;
width: 100%;
text-align: center;
background-color: ;
color: #fff;
font-family: Arial;
font-size: 17px;
letter-spacing: 2.5px;
}
.form-control {
cursor: auto;
}
.btn {
margin: 0 .375rem 0 0;
}
.list-group-item {
font-family: "Source Code Pro", Menlo, Monaco, Consolas, "Courier New", monospace;
}
@media (max-width: 769px) {
.card {
width: 100%;
}
}
@media (max-width: 420px) {
.card {
width: 100%;
}
}
@media (prefers-color-scheme: dark) {
body {
color: #d9d9d9;
background: #1b1b1b;
}
.card {
background-color: #252d38;
}
}
</style>
<body background="" >
<div class="card">
<h5 class="card-header">短链</h5>
<div class="card-body">
<h5 class="card-title"></h5>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">长链</span>
</div>
<input type="text" class="form-control" placeholder="请输入长链" id="text">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon2">短地址</span>
</div>
<input type="text" placeholder="请输入短址 为空则随机" id="key">
<span class="input-group-text" id="basic-addon1"><font color="red">注意: 不支持中文字符</font></span>
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon2">密码</span>
</div>
<input type="text" placeholder="请输入密码" id="password">
</div>
<div class="input-group-append">
<button class="btn btn-primary" type="submit" onclick='shorturl()' id="searchbtn">点击缩短</button>
</div>
<div class="card-footer">
<span>
<a href="https://肥猫.love/" target="_self|_blank">肥猫</a>
</span>
</div>
</div>
<div class="card-text">
</div>
</div>
</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">缩短为:</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">失败:</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick='copyurl("result")' data-toggle="popover" data-placement="bottom" data-content="已复制">复制</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
</div>
</div>
</div>
</div>
</head>
<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/npm/[email protected]/js/md5.min.js" integrity="sha256-cpbDsuAF6YYKGsywuE65CvzsMKN6x4m6733ZnT3QHHE=" crossorigin="anonymous"></script>
<script src="https://ly-img.github.io/short-url/main.js" crossorigin="anonymous"></script>
</body>
</html>