Skip to content

Instantly share code, notes, and snippets.

@marsen
Created August 21, 2013 12:14
Show Gist options
  • Save marsen/6293721 to your computer and use it in GitHub Desktop.
Save marsen/6293721 to your computer and use it in GitHub Desktop.
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>
$(function(){
$('#app-opener').bind('click',
function(){
var timer = setTimeout(function(){
alert('you not installed the x-myapp!!');
},1000);
$('#app-opener').blur(function(){ clearTimeout(timer);});
//location.href = 'x-myapp://';
});
});
</script>
</head>
<body>
<a id="app-opener" href="x-myapp:">a link</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment