cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              <div class="container">
  <div class="page-header">
  <h1>TWITCH STREAMERS <small>live streams</small></h1>
  <button type="button" class="btn btn-success" id="online">Online</button>
  <button type="button" class="btn btn-info" id="all">All</button>
 <button type="button" class="btn" id="offline">Offline</button>
  <div class="online list-group" ></div>
  <div class="offline list-group" ></div>
  var streamer = ["ESL_SC2", "OgamingSC2", "cretetion", "freecodecamp", "storbeck", "habathcx", "RobotCaleb", "noobs2ninjas"];
  for (i=0; i < streamer.length; i++) {
    let currentStream = streamer[i];
$.getJSON('https://wind-bow.gomix.me/twitch-api/streams/' + currentStream + '?callback=?', function(data){
  if (data.hasOwnProperty('error')) { // there is an issue with this user's channel 
  else if (data.stream == null){
    $('.offline').prepend('<a href=' + link + ' class="list-group-item"><h2 class="list-group-item-heading">' + currentStream + '</h2><h3><span class="label label-default">Offline</span></h3></a>');
  else {
    var link = data.stream.channel.url;
    var name = data.stream.game;
    var type = data.stream.stream_type;
    var viewers = data.stream.viewers;
    $('.online').prepend('<a href=' + link + ' class="list-group-item"><h2 class="list-group-item-heading">' + currentStream + '</h2><p>'+ name + ', ' + type + ', viewers: ' + viewers +'</p><h3><span class="label label-success">Online</span></h3></a>');
Loading ..................