Created
January 25, 2013 05:34
-
-
Save drawcode/4632023 to your computer and use it in GitHub Desktop.
Check if app installed and redirect to download.
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
| function startiThrown() { | |
| document.location = appurl; | |
| var time = (new Date()).getTime(); | |
| setTimeout(function(){ | |
| var now = (new Date()).getTime(); | |
| if((now-time)<400) { | |
| if(confirm('You do not seem to have iThrown installed, do you want to go download it now?')){ | |
| document.location = 'http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=293049283&mt=8&uo=6'; | |
| } | |
| } | |
| }, 300); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment