css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <div class="container">
  <div class="row">
    <div class="col-sm-3"></div>
    <div class="col-sm-6" id="page-content">
      <div class="row btns">
        <div class="col-sm-4">
          <button class ="btn  btn-success btn-small btn-block" id="online">Online</button>
        <div class = "col-sm-4">
          <button id = "offline" class="btn btn-danger btn-small btn-block">Offline</button>
        <div class = "col-sm-4">
          <button id = "all" class = "btn btn-warning btn-small btn-block"> All </button>
      <div class="table-responsive">
        <table id="table table-curved" class="table table-hover">
          <thead class="table-info">
            <tr id="heading">
              <th id="logo"></th>
              <th id="name">Streamer</th>
              <th id="stat">Status</th>
          <tbody id="tab">
            <tr id="loading">
        <div id="srch" class=" card card-info hidn">
          <form id="search" name="stream search">
            Search for other channels<br>
            <fieldset class="form-group">
              <div class = "row">
                <div class = "col-sm-6">
              <input id="searchbox" type="text" class="form-control" placeholder="Search" name="search"></input></div>
              <div class="col-sm-6">
                <input class="btn btn-success btn-block" type="button" id="button" value="Go"></input></div>
              <div id="results"></div>
              <div id="message"></div>
              body {
  font-family: 'montserrat', sans-serif

.container {

.card {
  text-align: center;
  box-shadow: 10px 10px 5px #888888;
  border-radius: 0px;

.card-title {
  padding: .25em;

img {
  border: solid .125em;
  border-color: #7B7E7F;
  width: 3em;


.img-circle {
  width: 50%;
  length: auto;

#logo {
  width: 15%

td {
  vertical-align: middle;
  border:  solid top .125em ;
  padding: .125em;

#results {
  text-align: center;

.hidn {
  display: none;
  transition: all 0.4s;

.btn {
  cursor: pointer;
  transition: all 0.4s;

a {
  transition: all 0.4s;
  cursor: pointer;

       box-shadow: 10px 10px 5px #888888;

#srch {
  padding: 1em;
  margin: .5em;

.table-responsive, .btns {
  padding: 1em;
              var html = ""
var timeoutTime = 2000
var write = function(channel) {
  $.getJSON("https://api.twitch.tv/kraken/streams?channel=" + channel, function(data) {
    if (data._total !== 0) { //if channel is streaming
      html += "<tr class = 'table-success'><td><a href = 'https://www.twitch.tv/'" + data.streams[0].channel.display_name + "'><img src='" + data.streams[0].channel.logo + "'></img></a></td><td><a href = 'https://www.twitch.tv/" + channel + "'>" + data.streams[0].channel.display_name + "</a></td><td>Currently Playing: " + data.streams[0].game + "</tr>"
    } else { //if channel is not streaming

      $.getJSON("https://api.twitch.tv/kraken/users/" + channel, function(data2) {
        //look up the user API instead
        if (data2.logo !== null) { //if there is a logo in the user API, use it
          html += "<tr class = 'table-danger'><td><a href = 'https://www.twitch.tv/" + data2.display_name + "'><img src='" + data2.logo + "'></img></a></td><td><a href = 'https://www.twitch.tv/" + channel + "'>" + channel + "</a></td><td>Offline</tr>";

        } else { //if there is no logo, use a placeholder instead

          html += "<tr class = 'table-danger'><td><a href = 'https://www.twitch.tv/" + channel+ "'><img src='https://www.tpreview.co.uk/wp-content/uploads/2013/11/twitch-logo-300x300.png'></img></a></td><td><a href = 'https://www.twitch.tv/" + channel + "'>" + channel + "</a></td><td>Offline</td></tr>";
    html += "<tr class = 'table-danger'><td><a href = 'https://www.twitch.tv/" + channel+ "'><img src='https://www.tpreview.co.uk/wp-content/uploads/2013/11/twitch-logo-300x300.png'></img></td><td>"+channel+"</td><td>User does not exist.</td></tr>"

  setTimeout(function() {
    $("#loading").fadeOut(200, function(){    $("#loading").addClass("hidn");    })
  }, timeoutTime)

var streamSearch = function() {
  var html2 = "<br><br>Results (Click to add to list): <p>";
  var string = "";
  string = $("#searchbox").val();
  $.getJSON("https://api.twitch.tv/kraken/search/channels?q=" + string, function(data3) {
    if (data3["_total"] === 0) {
      html2 = "Sorry! There are no matches for your search."
    } else {
      for (var i = 0; i < data3.channels.length; i++) {
        html2 += "<a class='results' id = '" + data3.channels[i].display_name + "'> " + data3.channels[i].display_name + " </a>// "




$("body").on('click', '.results', function() {
  var rslt = "";
  rslt = $(this).attr("id");
  $(this).replaceWith("<span class='text-muted'>Added!   </span>");

$("#searchbox").keypress(function(e) {
  if (e.which == 13) {

$("body").on("click", "#online", function (){

$("body").on("click", "#offline", function (){

$("body").on("click", "#all", function (){
$("document").ready(function() {
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................