Skip to content

Instantly share code, notes, and snippets.

@robertbrook
Forked from scripting/RiverReader
Last active August 29, 2015 14:03
Show Gist options
  • Save robertbrook/59b60a7399f3bb0981b7 to your computer and use it in GitHub Desktop.
Save robertbrook/59b60a7399f3bb0981b7 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>Minimal River Reader</title>
<script src="http://fargo.io/code/jquery-1.9.1.min.js"></script>
</head>
<body>
<script>
var theRiver;
function onGetRiverStream (updatedFeeds) {
theRiver = updatedFeeds;
}
$.ajax ({
url: "http://rss.scripting.com/rivers/nytRiver.js",
dataType: "jsonp"
});
</script>
<script>console.log(theRiver);</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment