-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtranspage.html
More file actions
59 lines (51 loc) · 1.76 KB
/
transpage.html
File metadata and controls
59 lines (51 loc) · 1.76 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>跳转中,请稍后。。。</title>
<style>
body,
html {
width: 100vw;
height: 100vh;
background: #000;
}
</style>
</head>
<body>
<script>
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
}
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
var expires = "expires=" + d.toGMTString();
document.cookie = cname + "=" + cvalue + "; " + expires;
}
function getCookie(cname) {
var name = cname + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i].trim();
if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
}
return "";
}
setCookie('userinfo', JSON.stringify({
id: getQueryString('id'),
name: getQueryString('name'),
avatar_url: getQueryString('avatar_url'),
html_url: getQueryString('html_url'),
email: getQueryString('email'),
bio: getQueryString('bio'),
}), 1);
window.location.href = 'http://www.creative6.cn';
</script>
</body>
</html>