diff --git a/js/main.js b/js/main.js index 805a4d7..193147e 100644 --- a/js/main.js +++ b/js/main.js @@ -1,11 +1,14 @@ var rss = [ 'hamburg.freifunk.net' ]; +var MAX_RSS = 5; $(document).ready(function() { + var i = 0; rss.forEach(function(feed) { $.get('/feeds/' + feed + '.rss', function(data) { $(data).find('item').forEach(function(entry) { + if(i >= MAX_RSS) return; var title = $(entry).find('title').text(); var link = $(entry).find('link').text(); @@ -15,6 +18,7 @@ $(document).ready(function() { .attr('target', '_blank') .text(title); $('#news').append($('