You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
137 lines
4.5 KiB
137 lines
4.5 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head lang="en">
|
|
<meta charset="UTF-8">
|
|
<title></title>
|
|
</head>
|
|
<body>
|
|
|
|
|
|
|
|
<script src="jquery.min.js"></script>
|
|
<script src="myCookie.js"></script>
|
|
<script>
|
|
|
|
$(window).load(function () {
|
|
|
|
/*function nowtime() {
|
|
var now = new Date();
|
|
var year = now.getFullYear(); //getFullYear getYear
|
|
var month = now.getMonth();
|
|
var date = now.getDate();
|
|
var hour = now.getHours();
|
|
var minu = now.getMinutes();
|
|
var sec = now.getSeconds();
|
|
month = month + 1;
|
|
if (month < 10) month = "0" + month;
|
|
if (date < 10) date = "0" + date;
|
|
if (hour < 10) hour = "0" + hour;
|
|
if (minu < 10) minu = "0" + minu;
|
|
if (sec < 10) sec = "0" + sec;
|
|
var time = year + "-" + month + "-" + date + " " + hour + ":" + minu + ":" + sec;
|
|
return time;
|
|
}*/
|
|
|
|
//console.log(nowtime());
|
|
|
|
function lastTime(){
|
|
var now = new Date();
|
|
var year = now.getFullYear(); //getFullYear getYear
|
|
var month = now.getMonth();
|
|
var date = now.getDate();
|
|
var hour = now.getHours();
|
|
var minu = now.getMinutes();
|
|
var sec = now.getSeconds();
|
|
month = month + 1;
|
|
//if (month < 10) month = "0" + month;
|
|
//if (date < 10) date = "0" + date;
|
|
//if (hour < 10) hour = "0" + hour;
|
|
//if (minu < 10) minu = "0" + minu;
|
|
//if (sec < 10) sec = "0" + sec;
|
|
var time = year + "-" + month + "-" + date + " " + 23 + ":" + 59 + ":" + 59;
|
|
return time;
|
|
}
|
|
|
|
|
|
|
|
|
|
var timestamp = Date.parse(new Date());
|
|
timestamp = timestamp / 1000; //当前的时间戳,以s为单位
|
|
console.log("当前的时间戳:" + timestamp);
|
|
|
|
var last = Date.parse(new Date(lastTime()));
|
|
last = last/1000; //当天23:59:59的时间戳
|
|
|
|
var timeInterval = last-timestamp+(5*3600+1);
|
|
|
|
timeInterval = timeInterval/3600;
|
|
|
|
|
|
|
|
//if(Cookie.getCookie("count_") != ){
|
|
|
|
var titlepath = location.search;
|
|
|
|
|
|
|
|
if(titlepath != ""){
|
|
console.log(titlepath);
|
|
|
|
var cleaburl = titlepath.substring(1);
|
|
var arraya= cleaburl.split("&");
|
|
|
|
var hashTable = new Object();
|
|
for(var i = 0; i < arraya.length; i++){
|
|
var arrayb = arraya[i].split("=");
|
|
hashTable[arrayb[0]] = arrayb[1];
|
|
//hashTable["nowtime"] = nowtime();
|
|
hashTable["width"] = window.screen.width;
|
|
hashTable["height"] = window.screen.height;
|
|
hashTable["pluginLength"] = navigator.plugins.length;
|
|
hashTable["platform"] = navigator.platform;
|
|
}
|
|
|
|
var uid = hashTable["uid"];
|
|
var cookieName = 'clickUid_'+uid;
|
|
|
|
|
|
|
|
console.log(hashTable);
|
|
|
|
if(!Cookie.getCookie(cookieName) || Cookie.getCookie(cookieName) != uid){
|
|
|
|
|
|
|
|
//Cookie.setCookie(cookieName, uid, {expireHours:timeInterval, path:"/"});
|
|
|
|
$.getJSON("/dpapi/linkclick", hashTable,function(data){
|
|
if(data.ret == 0){
|
|
//alert("请求成功!");
|
|
Cookie.setCookie(cookieName, uid, {expireHours:data.msg/3600, path:"/"});
|
|
window.location = 'https://ky582.app.goo.gl/?link=https://www.facebook.com/FunOkey101&apn=com.elex.rummyfun101.tr&st=Fun+Okey+101+DP+Title&sd=Fun+Okey+101+DP+Instruction&si=http://xv.itgnetwork.com/pic/signshare/AD-12.jpg&utm_source=source&utm_medium=medium&utm_campaign=campaign&uid='+uid
|
|
|
|
}else{
|
|
//alert("错误")
|
|
}
|
|
})
|
|
}else{
|
|
//alert("已经点击过了")
|
|
window.location = 'https://ky582.app.goo.gl/?link=https://www.facebook.com/FunOkey101&apn=com.elex.rummyfun101.tr&st=Fun+Okey+101+DP+Title&sd=Fun+Okey+101+DP+Instruction&si=http://xv.itgnetwork.com/pic/signshare/AD-12.jpg&utm_source=source&utm_medium=medium&utm_campaign=campaign&uid='+uid
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|