diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/bootswatch.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/js/bootswatch.js b/js/bootswatch.js index 82faa2b5..93b891f6 100644 --- a/js/bootswatch.js +++ b/js/bootswatch.js @@ -7,4 +7,14 @@ $('#main-menu').load('/js/snippets/main-menu.html', function(){ $('a[rel=tooltip]').tooltip({ 'placement': 'bottom' }); -});
\ No newline at end of file +}); + +function parseRSS(url, callback) { + $.ajax({ + url: 'http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=' + encodeURIComponent(url), + dataType: 'json', + success: function(data) { + callback(data.responseData.feed); + } + }); +}
\ No newline at end of file |