Created
April 17, 2017 16:16
-
-
Save christoga/838578664cd9f13d6d08da28c1deaca2 to your computer and use it in GitHub Desktop.
jQuery app download snippet
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
$(document).ready(function (){ | |
if(navigator.userAgent.toLowerCase().indexOf("android") > -1){ | |
window.location.href = 'https://play.google.com/store/apps/details?id=com.example.android'; | |
} | |
if(navigator.userAgent.toLowerCase().indexOf("iphone") > -1){ | |
window.location.href = ''; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment