$(document).ready(function(){ var feedvars1 = {'datatype': 'json', 'source': 'twitter', 'mothership': 'false', 'type': 'list', 'query': 'nbcnewsus/lists/social-directory', 'limit': 5}; $('#result1').spy(feedvars1); //load the feed var refresh1 = setInterval(function(){ $('#result1').spy(feedvars1); }, 120000); //refresh the feed var feedvars2 = {'datatype': 'json', 'source': 'twitter', 'mothership': 'false', 'type': 'account', 'query': 'todayshow', 'limit': 5}; $('#result2').spy(feedvars2); //load the feed var refresh2 = setInterval(function(){ $('#result2').spy(feedvars2); }, 120000); //refresh the feed var feedvars3 = {'datatype': 'json', 'source': 'twitter', 'mothership': 'false', 'type': 'list', 'query': 'nbcnews/lists/topics', 'limit': 5}; $('#result3').spy(feedvars3); //load the feed var refresh3 = setInterval(function(){ $('#result3').spy(feedvars3); }, 120000); //refresh the feed var feedvars4 = {'datatype': 'json', 'source': 'twitter', 'mothership': 'false', 'type': 'list', 'query': 'nbcnews/lists/correspondents', 'limit': 5}; $('#result4').spy(feedvars4); //load the feed var refresh4 = setInterval(function(){ $('#result4').spy(feedvars4); }, 120000); //refresh the feed var feedvars5 = {'datatype': 'json', 'source': 'twitter', 'mothership': 'false', 'type': 'list', 'query': 'msnbc/lists/msnbc-shows', 'limit': 5}; $('#result5').spy(feedvars5); //load the feed var refresh5 = setInterval(function(){ $('#result5').spy(feedvars5); }, 120000); //refresh the feed var feedvars6 = {'datatype': 'json', 'source': 'twitter', 'mothership': 'false', 'type': 'list', 'query': 'nbcnews/lists/personalities-and-blogs', 'limit': 5}; $('#result6').spy(feedvars6); //load the feed var refresh6 = setInterval(function(){ $('#result6').spy(feedvars6); }, 120000); //refresh the feed });