-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
29 lines (27 loc) · 850 Bytes
/
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
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sk5short one</title>
</head>
<body>
<noscript>
<h1>This site need javascript to redirect. If javascript is disabled then you need to view site source script tag. Address book is in there.</h1>
</noscript>
<script>
let params = new URLSearchParams(location.search);
let redirect = params.get('r')
let defaultLink = 'https://www.sk5s.cyou/'
let book = {
'test' : 'https://lab.sk5s.cyou/'
}
if (redirect !== null && book[redirect] !== '' && book[redirect] !== undefined) {
window.location.replace(book[redirect])
} else {
window.location.replace(defaultLink)
}
</script>
</body>
</html>