Created
October 12, 2011 13:22
-
-
Save PaulKinlan/1281210 to your computer and use it in GitHub Desktop.
Subscribe Intent
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
<!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