Skip to content

Instantly share code, notes, and snippets.

@PaulKinlan
Created October 12, 2011 13:22
Show Gist options
  • Save PaulKinlan/1281210 to your computer and use it in GitHub Desktop.
Save PaulKinlan/1281210 to your computer and use it in GitHub Desktop.
Subscribe Intent
<!doctype html>
<html>
<head>
<intent action="http://webintents.org/subscribe" type="application/atom+xml" />
<script src="http://webintents.org/webintents.min.js"></script>
</head>
<body>
<button id="go">Go</button>
</body>
<script>
go.addEventListener("click", function() {
window.navigator.startActivity("http://webintents.org/subscribe", "application/atom+xml", "http://paul.kinlan.me");
}, false);
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment