From: Thomas Park Date: Sun, 10 Feb 2013 03:36:58 +0000 (-0500) Subject: moved parseRSS function to index X-Git-Tag: v2.3.0+1~9 X-Git-Url: http://git.roojs.org/?p=bootswatch;a=commitdiff_plain;h=930114be5b671cf8aab0914b146a164fa635d80a moved parseRSS function to index --- diff --git a/index.html b/index.html index c99a28b..031c8ae 100644 --- a/index.html +++ b/index.html @@ -565,6 +565,7 @@ !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs"); diff --git a/js/bootswatch.js b/js/bootswatch.js index 07fba6b..71eba46 100644 --- a/js/bootswatch.js +++ b/js/bootswatch.js @@ -4,18 +4,6 @@ $('a[rel=tooltip]').tooltip({ 'placement': 'bottom' }); -// recent news - -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); - } - }); -} - // smooth scroll $(document).ready(function() {