Guest User

Untitled

a guest
Feb 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. $(document).ready(function(){
  2.  
  3. channels.forEach(function(channel, callback){
  4. $.getJSON('https://wind-bow.glitch.me/twitch-api/streams/' + channel, function(json){
  5. status = onlineStatus(json);
  6. myHtml += infoChannels(channel, status);
  7. }).fail(function(){
  8. console.log('Error');
  9. myHtml += infoChannels(channel, status);
  10. });
  11. });
  12. $('.channels').html(myHtml);
Add Comment
Please, Sign In to add comment