Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <!-- Font Awesome -->
<script src="https://use.fontawesome.com/9d03eba9c5.js"></script>

<!-- Header -->
<div class="container-fluid header">
  <img src="https://s3-us-west-2.amazonaws.com/web-design-ext-production/p/Combologo_474x356.png" alt="twitch" id="twitch-logo" height="125px">
</div>
  
     
      <!-- Status of Streamer -->
<div class="container-fluid" id="stream-status">
        <div class="row stream-status">
          <div class="col-sm-4 tabs" id="All-Status">
            All
          </div>
          <div class="col-sm-4 tabs" id="Online-Status">
            Online
          </div>
          <div class="col-sm-4 tabs" id="Offline-Status">
            Offline
          </div>        
        </div>
</div>


<div class="video-stream-container">
  <div class="video-stream">
  </div>
</div>


<!-- List of Streamer -->
      <!--ESL_SC2-->
      <div class="container-fluid streamer-container"  id="streamers">
        <div class="row streamer-box" id="ESL_SC2">
          <div class="col-sm-3 logo">
            <img src="https://static-cdn.jtvnw.net/jtv_user_pictures/esl_sc2-profile_image-d6db9488cec97125-300x300.jpeg" alt="ESL_SC2 Logo" class="">
          </div>
          <div class="col-sm-9 user-text">
            <h3>ESL_SC2</h3>
            <p class="status"></p>
          </div>
        </div>
        <!--Free Code Camp-->
        <div class="row streamer-box" id="freecodecamp">
          <div class="col-sm-3 logo">
            <img src="https://static-cdn.jtvnw.net/jtv_user_pictures/freecodecamp-profile_image-d9514f2df0962329-300x300.png" alt="Free Code Camp Logo">
          </div>
          <div class="col-sm-9 user-text">
            <h3>Free Code Camp</h3>
            <p class="status"></p>
          </div>
        </div>
        
        <!--OgamingSC2-->
        <div class="row streamer-box" id="OgamingSC2">
          <div class="col-sm-3 logo">
            <img src="https://static-cdn.jtvnw.net/jtv_user_pictures/ogamingsc2-profile_image-9021dccf9399929e-300x300.jpeg" alt="OgamingSC2 Logo">
          </div>
          <div class="col-sm-9 user-text">
            <h3>OgamingSC2</h3>
            <p class="status"></p>
          </div>
        </div>
        
         <!--cretetion-->
        <div class="row streamer-box" id="cretetion">
          <div class="col-sm-3 logo">
            <img src="https://static-cdn.jtvnw.net/jtv_user_pictures/cretetion-profile_image-12bae34d9765f222-300x300.jpeg" alt="cretetion Logo">
          </div>
          <div class="col-sm-9 user-text">
            <h3>cretetion</h3>
            <p class="status"></p>
          </div>
        </div>
        
       
        <!--habathcx-->
        <div class="row streamer-box" id="habathcx">
          <div class="col-sm-3 logo">
            <img src="https://static-cdn.jtvnw.net/jtv_user_pictures/habathcx-profile_image-d75385dbe4f42a66-300x300.jpeg" alt="habathcx Logo">
          </div>
          <div class="col-sm-9 user-text">
            <h3>habathcx</h3>
            <p class="status"></p>
          </div>
        </div>
        
         <!--RobotCaleb-->
        <div class="row streamer-box" id="RobotCaleb">
          <div class="col-sm-3 logo">
            <img src="https://static-cdn.jtvnw.net/jtv_user_pictures/robotcaleb-profile_image-9422645f2f0f093c-300x300.png" alt="RobotCaleb Logo">
          </div>
          <div class="col-sm-9 user-text">
            <h3>RobotCaleb</h3>
            <p class="status"></p>
          </div>
        </div>
        
        <!--noobs2ninjas-->
        <div class="row streamer-box" id="noobs2ninjas">
          <div class="col-sm-3 logo">
            <img src="https://static-cdn.jtvnw.net/jtv_user_pictures/noobs2ninjas-profile_image-34707f847a73d934-300x300.png" alt="noobs2ninjas Logo">
          </div>
          <div class="col-sm-9 user-text">
            <h3>noobs2ninjas</h3>
            <p class="status"></p>
          </div>
        </div>
            
      </div>
    
    


  
              
            
!

CSS

              
                /*
https://coolors.co/6441a5-dbcbd8-f2fdff-9ad4d6-101935
Header: #6441A5
Background: #101935
Text: #F2FDFF
Highlights: #9AD4D6
Hover color: #8858E2
*/

body{
  background-color: #101935;
}

.header{
  display: block;
  width: 75%;
  margin: 10px auto;
  background-color: #6441A5;
  border-radius: 1em;
}

#twitch-logo{
  margin: auto;
  display: block;
  border-radius: 20%;
}

.stream-status{
  width: 75%;
  margin: auto;
}
.video-stream-container{
  width: 75%;
  margin: auto;
  overflow: hidden;
}
.video-stream-container iframe{
  position: absolute;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
}

.stream-status .tabs{
  background-color: #6441A5;
  border-radius: 0.25em;
  text-align: center;
  font-family:Helvetica, Arial, Sans-Serif;
  font-size: 1.25em;
  color: #F2FDFF;
  
}
.stream-status .tabs:hover, .stream-status .tabs:active{
  background-color: #8858E2;
}

.streamer-container{
  width: 70%;
  margin: auto;  
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
}

.streamer-box{
  background-color: #9AD4D6;
  border-radius: 1em;
  margin: auto;
  margin-top: 15px;
  width: 350px;
  height: 150px;
  position: relative;
}

.logo{
  width: 80px;
  height: 80px;
}
.logo img{
  margin: 4px;
  width: 75px;
  height: 75px;
  border-radius: 50%;
}
.user-text{
  font-family:Helvetica, Arial, Sans-Serif;
  color: #EFF6E0;
  height: 40px;
  position: absolute;
  bottom: 0px;
  left: 0px;
  padding: 10px;
}
.user-text h3 {
  position: absolute;
  bottom: 0px;
}

.user-online, .user-online-logo{
  border-style: solid;
  border-width: 6px;
  border-color: green;
}
.user-offline{
  border-style: solid;
  border-width: 5px;
  border-color: red;
}


.twitchUserOffline{
  color: red;
  margin: 0px 10px;
}
.twitchUserLive{
  color: green;
  margin: 0px 10px;
}

/* Users Cover Photo */


#ESL_SC2{
  background-image: url("https://static-cdn.jtvnw.net/jtv_user_pictures/esl_sc2-profile_banner-f8295b33d1846e75-480.jpeg");
}
#freecodecamp{
  background-image: url("https://static-cdn.jtvnw.net/jtv_user_pictures/freecodecamp-profile_banner-6f5e3445ff474aec-480.png");
  
}
#OgamingSC2{
  background-image: url("https://static-cdn.jtvnw.net/jtv_user_pictures/ogamingsc2-profile_banner-d418aed2c0ef7d35-480.jpeg");
}
#cretetion{
  background-image: url("https://static-cdn.jtvnw.net/jtv_user_pictures/cretetion-profile_banner-c50d8ffd97fc7ffa-480.png");
}
#habathcx{
  background-image: url("");
}
#RobotCaleb{
  background-image: url("https://static-cdn.jtvnw.net/jtv_user_pictures/robotcaleb-profile_banner-7167a1b68fb1c502-480.png");
}
#noobs2ninjas{
  background-image: url("https://static-cdn.jtvnw.net/jtv_user_pictures/noobs2ninjas-profile_banner-0a065656911e6d4d-480.jpeg");
}

@media only screen and (max-width: 900px) {
  .header{
    width: 100%;
    border-radius: 0px;
    margin: 0px;
    margin-bottom: 2px;
  }
  #stream-status, .stream-status{
    width: 100%;
    margin: 0px;
    
  }
  .stream-status .tabs{
    border-radius: 0px;
  }
  .video-stream-container{
    width: 100%;
  }
  .streamer-container{
    width: 95%;
  }
}
              
            
!

JS

              
                //Users
var userList = ["ESL_SC2", "freecodecamp", "OgamingSC2", "cretetion", "habathcx", "RobotCaleb", "noobs2ninjas", "ryanmbarger"]


//Update images for user
userList.forEach(function(user){
  var channelApiUrl = "https://wind-bow.gomix.me/twitch-api/channels/" + user + "?callback=?";
  
  
      $.getJSON(channelApiUrl, user).done(function(data, textStatus, jqXHR){
        
                if(data["status"] == 404){
                  
                  $("#"+user).replaceWith(user+ ": Channel Not Found");
                
                }else{
                  $("#"+user).css({'background-image': 'url('+data.profile_banner+')'});
                  $("#"+user+" .logo img").replaceWith('<img src="'+data.logo+'" alt="'+user+' Logo">')               
                }
    })
 
});


userList.forEach(function(user){
  var streamApiUrl = "https://wind-bow.gomix.me/twitch-api/streams/" + user + "?callback=?";
  
      $.getJSON(streamApiUrl, user).done(function(data, textStatus, jqXHR){
       
          if(data.stream == null){
            $("#"+user+ " .logo img").addClass("user-offline");
            $("#"+user).addClass("user-offline");
           
          }else{
            $("#"+user+ " .logo img").addClass("user-online-logo");
            $("#"+user).addClass("user-online");

          } 
      })
});

//Action to show video above list of users
//Click function

/*$(".user-online").click(videoStreamAdd());

var videoStreamAdd = function(){
  $(".video-stream").replaceWith('<iframe    src="https://player.twitch.tv/?channel=esl_sc2&muted=true"  frameborder="0"    scrolling="no"    allowfullscreen="true"></iframe>');
  $(".video-stream-container").css({"position":"relative","padding-bottom": "56.25%"});
  console.log(this.id.toLowerCase());
  
};
*/
$(".streamer-box").click(function(){
  //console.log(this.id.toLowerCase())
  console.log("This is a test! Class Test");
});


/*
$("#ESL_SC2").click(function(){
  console.log("This is a Test! ID Test");
});
*/


//Status bar funcitons
$("#All-Status").click(function(){
  $(".user-online").show();
  $(".user-offline").show();
});

$("#Online-Status").click(function(){
  $(".user-online").show();
  $(".user-offline").hide();
});

$("#Offline-Status").click(function(){
  $(".user-online").hide();
  $(".user-offline").show();
});


















              
            
!
999px

Console