Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- channels.forEach(function(channel, callback){
- $.getJSON('https://wind-bow.glitch.me/twitch-api/streams/' + channel, function(json){
- status = onlineStatus(json);
- myHtml += infoChannels(channel, status);
- }).fail(function(){
- console.log('Error');
- myHtml += infoChannels(channel, status);
- });
- });
- $('.channels').html(myHtml);
Add Comment
Please, Sign In to add comment