-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathGetUri.html
70 lines (62 loc) · 1.62 KB
/
GetUri.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>URI加密/解密工具 - 784040932</title>
<script type="text/javascript" language="javascript">
function doDecode() {
var src = document.getElementById('src').value;
document.getElementById('dest').value = decodeURIComponent(src.slice(src.indexOf("=http")+1));
}
function doEncode() {
var src = document.getElementById('src').value;
document.getElementById('dest').value = encodeURIComponent(src);
}
</script>
<style type="text/css">
<!--
#src {
font-family: Consolas;
font-size: 30px;
height: 48px;
width: 60%;
}
.button {
height: 54px;
width: 10%;
vertical-align: top;
}
#opt {
}
#dest {
border: none;
font-family: Consolas;
font-size: 30px;
width: 100%;
}
textarea {
margin-top: 10%;
outline:none;
}
footer {
bottom: 20px;
margin-bottom: 20px;
position: absolute;
}
-->
</style>
</head>
<body>
<div>
<input autocomplete="off" autofocus="autofocus" id="src" name="src" onkeydown="if(event.keyCode==13){doDecode();}" onmouseover="this.focus();this.select()" type="text" />
<input class="button" name="Decode" onclick="doDecode();" type="button" value="解密" />
<input class="button" name="Encode" onclick="doEncode();" type="button" value="加密" />
</div>
<p>
<textarea cols="60" id="dest" name="dest" onmouseover="this.focus();this.select()" readonly="readonly" rows="1"></textarea>
</p>
<footer>
V1.0 By 784040932.
</footer>
</body>
</html>