Created
September 2, 2015 10:51
-
-
Save klinkin/8e8fe7577fbff6eb1de6 to your computer and use it in GitHub Desktop.
Пример редиректа в свой мобильный store
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Установи Едадил и покупай со скидками!</title> | |
<meta charset="utf-8" /> | |
<script> | |
var agent = navigator.userAgent.toLowerCase(), | |
loc; | |
if (/iphone|ipad|ipod/i.test(agent)) { | |
loc = 'http://www.installtracker.com/cgi-bin/r.pl?campid=0&aid=14&pid=3212&cid=first&clickid={clickid}'; | |
} else if (/android/i.test(agent)) { | |
loc = 'http://www.installtracker.com/cgi-bin/r.pl?campid=0&aid=16&pid=3212&cid=first&clickid={clickid}'; | |
} else { | |
loc = 'http://edadeal.ru'; | |
} | |
window.location = loc; | |
</script> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment