-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathandroid-iframe.html
53 lines (47 loc) · 1.61 KB
/
android-iframe.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
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
window.onload = function() {
var fallbackFunction = function() {
window.location.replace("market://details?id=io.branch.branchster&referrer=link_click_id-329412629776439453");
};
// window.onload = function() {
// var a = "open?link_click_id=324253832688951108";
// var b = "branchsters://";
// var fallbackFunction = function() {
// if (document.webkitHidden || document.hidden) { return; }
// //window.location.replace("market://details?id=io.branch.branchster&_branch_match_id=324253832688951108&referrer=link_click_id-324253832688951108");
// window.location.replace("market://details?id=io.branch.branchster&referrer=link_click_id-329412629776439453");
// };
// var addIFrame = function() {
// var iframe = document.createElement("iframe");
// iframe.style.border = "none";
// iframe.style.width = "1px";
// iframe.style.height = "1px";
// iframe.src = b + a;
// document.body.appendChild(iframe);
// };
// if (navigator.userAgent.match(/Firefox/)) {
// window.location.replace(b + a);
// }
// else if ((navigator.userAgent.match(/Chrome/) && navigator.userAgent.match("Version/")) || navigator.userAgent.match("\\[FB")) {
// var setURIFunction = function() {
// addIFrame();
// setTimeout(fallbackFunction, 750-250);
// };
// setTimeout(setURIFunction, 250);
// return;
// }
// else {
// addIFrame();
// }
setTimeout(fallbackFunction, 750);
};
// };
</script>
</head>
<body>
Textt
</body>
</html>