Skip to content

Commit

Permalink
moved parseRSS function to index
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspark committed Feb 10, 2013
1 parent 6c2dcef commit 930114b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ <h3>Base Admin</h3>
!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',
Expand All @@ -581,6 +582,17 @@ <h3>Base Admin</h3>
}
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>
Expand Down
12 changes: 0 additions & 12 deletions js/bootswatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 930114b

Please sign in to comment.