diff options
author | Thomas Park <thomas@thomaspark.me> | 2013-02-09 22:36:58 -0500 |
---|---|---|
committer | Thomas Park <thomas@thomaspark.me> | 2013-02-09 22:36:58 -0500 |
commit | 930114be5b671cf8aab0914b146a164fa635d80a (patch) | |
tree | ec1b60790b15d7599fceaaa657e25258a61ef2b9 | |
parent | 6c2dcef028703f191a68fe8777d964ff48de3085 (diff) |
moved parseRSS function to index
-rw-r--r-- | index.html | 12 | ||||
-rw-r--r-- | js/bootswatch.js | 12 |
2 files changed, 12 insertions, 12 deletions
@@ -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"); </script> <script type="text/javascript"> + var taglines = [ 'Free themes for <a target="_blank" href="http://twitter.github.com/bootstrap/">Twitter Bootstrap</a>', 'Add color to your <a target="_blank" href="http://twitter.github.com/bootstrap/">Bootstrap</a> site without touching a color picker', @@ -581,6 +582,17 @@ } document.getElementById('ticker').innerHTML = h; }) + + 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); + } + }); + } + </script> </body> diff --git a/js/bootswatch.js b/js/bootswatch.js index 07fba6bf..71eba460 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() { |