Created
July 24, 2013 19:54
-
-
Save tsycho/6073956 to your computer and use it in GitHub Desktop.
Load G+ app or redirect to App store link if that fails
This file contains 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
<head> | |
<meta name="viewport" content="width=device-width"> | |
<meta http-equiv="cache-control" content="no-cache"> | |
<script type="text/javascript"> | |
function timeoutRedirect() { | |
var calledAt = Number(new Date()); | |
setTimeout( | |
function() { | |
if (Number(new Date()) - calledAt < 2000) { | |
window.location = "itms://itunes.apple.com/us/app/hangouts/id643496868"; | |
} | |
}, | |
100); | |
window.location = "com.google.hangouts://videochat?ei\x3dYmVuLmVpZGVsc29uQGdtYWlsLmNvbQ.tc4qclkbqm8hvor4m2nc6sgapg\x26es\x3dcalendar"; | |
} | |
</script> | |
</head> | |
<body onload="timeoutRedirect()"> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment