Fortune Telling Collection - Fortune-telling birth date - How does the webpage code judge that the browser jumps to a different website?
How does the webpage code judge that the browser jumps to a different website?
& lt script & gt
var u = navigator.userAgent
var num _ sing 1 = 0;
var isan droid = u . index of(' Android ')& gt; - 1 | | u . index of(' Adr ')& gt; - 1;
var isiOS =! ! u.match(/\(i[^; ]+; (U; )? CPU。 +Mac OS X/);
$("#imgTc ")。 Click (function () {
num _ sing 1++;
if(isAndroid){
if(num _ sing 1 & gt; 1){
Window.location.replace("/ fortune teller www.fs58.com ");
} Otherwise {
_ai_analysis(['trackEvent',' button',' download'], function () {
Alarm (1 1)
Window.location.replace("/ fortune teller www.fs58.com ");
})
}
}
if(isiOS){
if(num _ sing 1 & gt; 1){
Window.location.replace ("fortune teller m.fs58.com");
} Otherwise {
_ai_analysis(['trackEvent',' button',' download'], function () {
Alarm (22)
Window.location.replace ("fortune teller m.fs58.com");
});
}
}
if (is_weixn()) {
Alert ("Please click the button in the upper right corner and click to open it with a browser");
}
The function is _ weixin () {
var ua = navigator . user agent . tolowercase();
if(ua . match(/micro messenger/I)= = " micro messenger "){
Return true
} Otherwise {
Returns false
}
}
});
& lt/script & gt;
100% availability has been tested!
- Related articles
- Xu Maogong told McCullough that he could live to be 73 years old. Why did Luo Cheng die at the age of 23?
- What are the tourist attractions in Fangcheng Guaihe Town?
- Born in the solar calendar: 1980, 13 August 27th, male, please ask the fortune teller to calculate the horoscope?
- Dream of looking for someone else to tell fortune.
- How to advance the big wedding in fate?
- Folk fortune-telling jargon _ How to say folk fortune-telling jargon
- Make an appointment for fortune telling in advance.
- Fangcheng hopes who is the boss.
- Yang Zhenning's stories in those years
- No one sang the original song at the foot of the road.