Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for delicious, rss/atom feeds
- Loading branch information
Showing
8 changed files
with
92 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,12 @@ | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<title>Delicious</title> | |||
<script src="jsonp.js"></script> | |||
<script src="wordyclouds.js"></script> | |||
<script src="delicious.js"></script> | |||
</head> | |||
<body> | |||
<h1>Delicious</h1> | |||
</body> | |||
</html> |
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,4 @@ | |||
function loadDeliciousTags(){ | |||
WordyClouds.loadFromDelicious('airportyh') | |||
} | |||
window.onload = loadDeliciousTags |
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,12 @@ | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<title>Feeds</title> | |||
<script src="jsonp.js"></script> | |||
<script src="wordyclouds.js"></script> | |||
<script src="feeds.js"></script> | |||
</head> | |||
<body> | |||
<h1>Feeds</h1> | |||
</body> | |||
</html> |
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,6 @@ | |||
function loadFeed(){ | |||
var url = 'http://tobyho.com/user/airportyh/rss.xml' | |||
var numEntries = 10 | |||
WordyClouds.loadFromFeed(url, numEntries) | |||
} | |||
window.onload = loadFeed |
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
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
var JSONP = {} | |||
JSONP.get = function(url, callback){ | |||
var scriptTag = document.createElement('script') | |||
var callbackName = '_' + new Date().getTime() | |||
window[callbackName] = function(){ | |||
callback.apply(null, arguments) | |||
delete window[callbackName] | |||
} | |||
if (url.indexOf('?') != -1) | |||
url += '&callback=' + callbackName | |||
else | |||
url += '?callback=' + callbackName | |||
scriptTag.src = url | |||
document.head.appendChild(scriptTag) | |||
} |
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1 +1 @@ | |||
main() | WordyClouds.runBookmarklet() |
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