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.

+ add another resource


Babel includes JSX processing.

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.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div class="container" id = "chunk">
  <div class="row">
    <div class="col-md-11">
  <h1 id="title">TWITCH STREAMS</h1>
    <div class="col-md-1">
      <button type="button" class="selector" id="onlineButton">Online</button>
      <button type="button" class="selector" id="offlineButton">Offline</button>



                @import url('');
body {
#chunk {
  width: 650px;
  margin-bottom: 50px;

.selector {
  background: silver;
  margin-left: -25px;

  margin-bottom: 3px;

#title {
  font-family: "Press Start 2P", sans-serif;
  background: silver;
  padding-top: 10px;
  padding-bottom: 7px;
  text-align: center;

.media {
  padding: 10px;

.streaming {
  outline: 1px dashed green;

.offline {
  outline: 1px dashed red;

.logo {
  heigt: 50px;
  width: 50px;



  var users = ["ESL_SC2", "OgamingSC2", "cretetion", "freecodecamp", "storbeck", "habathcx", "RobotCaleb", "noobs2ninjas", "brunofin"];
  var baseURL = "";
  $.each(users, function(i){
     var streamingURL = baseURL + "streams/" + users[i];
     var offlineURL = baseURL + "channels/" + users[i];
    $.getJSON(streamingURL, function(data) {
      if ( !== null) {
        console.log(users[i] + " online");
        var streamingLogo =;
        var streamingName =;
        var streamingStatus =;
        var streamingLink =;
        $("#chunk").append("<div class = 'media streaming'> <div class = 'media-left media-top'> <img src = '" + streamingLogo + "' class = 'media-object logo'> </div> <div class='media-body'>  <h4 class='media-heading'> <a href='" + streamingLink + "' target='blank'>" + streamingName + "</a></h4> <p>" + streamingStatus + "</p> </div>"
      } else if ( === null) {
        console.log(users[i] + " offline");
        $.getJSON(offlineURL, function(data2) {
          if (data2.status == 404) {
            $("#chunk").append("<div class = 'media offline'>  <div class='media-body'>  <h4 class='media-heading'>" + users[i] + "</h4> <p>No such streamer.</p> </div>"
          } else {
            var offlineLogo = data2.logo;
            var offlineName = data2.display_name;
            var offlineStatus = "Offline";
            $("#chunk").append("<div class = 'media offline'> <div class = 'media-left media-top'> <img src = '" + offlineLogo + "' class = 'media-object logo'> </div> <div class='media-body'>  <h4 class='media-heading'> <a href='" + offlineName + "' target='blank'>" + offlineName + "</a></h4> <p>" + offlineStatus + "</p> </div>"