forked from imathis/octopress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwechat_redirect_v2.html
42 lines (38 loc) · 1.29 KB
/
wechat_redirect_v2.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
<html>
<script src="http://7jpncc.com1.z0.glb.clouddn.com/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8">
//Google Analytics init
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=0;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','http://7jpncc.com1.z0.glb.clouddn.com/analytics.js','ga');
ga('create', 'UA-72839443-1', 'auto');
ga('send', 'pageview');
</script>
<script type="text/javascript" src="http://7xr25o.com1.z0.glb.clouddn.com/blogutils.js" charset="utf-8"></script>
<script type="text/javascript">
function redirectPage(destUrl) {
window.location.href = destUrl;
}
var destLink = getParamValue('url');
destLink = window.atob(destLink);
if (destLink == undefined) {
destLink = 'http://droidyue.com';
}
trackEvent("redirect", "wechat", destLink);
setTimeout(function() {
redirectPage(destLink);
}, 1000);
</script>
<style type="text/css">
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
}
</style>
<body class="container">
<center>页面跳转中...</center>
</body>
</html>