-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest1.html
More file actions
51 lines (49 loc) · 2.15 KB
/
test1.html
File metadata and controls
51 lines (49 loc) · 2.15 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
<html>
<head>
<meta charset="UTF-8">
<meta property="og:title" content="World’s Largest Professional Network | LinkedIn" />
<meta property="og:description" content="" />
<meta property="og:image" content="https://static.licdn.com/sc/h/dh24ia9h275v7b7ithcjx2arl" />
<meta property="al:android:url" content="sharesample://story/1234" />
<meta property="al:android:app_name" content="EMMX Dev" />
<meta property="al:android:package" content="com.microsoft.emmx.development" />
<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 getCookie(name) {
var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
if(arr=document.cookie.match(reg))
return unescape(arr[2]);
else
return null;
}
function setCookie(name, val) {
var exp = new Date();
exp.setTime(exp.getTime() + (60*1000));
document.cookie = name+"=" + val + "; expires=" + exp.toUTCString();
}
function isFirstOpen() {
var flag = getCookie("flag");
if (flag == null || flag == 2) {
setCookie("flag", 1);
return true;
} else {
setCookie("flag", 2);
return false;
}
}
</script>
</head>
<body>
<script>
if (isFirstOpen()) {
window.location.href = getQueryString("target_url");
}
</script>
</body>
</html>