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.


    <h1> App</h1>
    <div class="content">  
      <table class="table">
            <th>Currently Streaming</th>

  <footer>Lindsay Anchors' implementation of's intermediate front-end challenge to create a Twitchtv app. December 2016.</footer>



                body {
  background-color: rgba(130, 176, 151, 0.7);

header {
  background-color: #8db89e;

h1 {
  text-align: center;
  padding: 10px;

.content {
  display: flex;
  flex-flow: row unwrap;
  justify-content: center;

.table {
  max-width: 55%;
  margin-top: 5%;  

/* Needed to be specific here to override the bootstrap "table" class default of `vertical-align: top` */
.table td {
  vertical-align: middle;

img {
  height: 15%;
  width: 15%;
  margin-right: 15px;

footer {
  text-align: center;
  color: #658976;
  font-size: 90%;
  padding-top: 10px;
  padding-bottom: 5px;


                function addRow(channelUrl, logo, username, streamingDetail, rowNum) {
  var table = document.getElementsByTagName("tbody")[0];
  var newRow = table.insertRow(rowNum);
  var newCellLeft = newRow.insertCell(0);
  var newCellRight = newRow.insertCell(1);
  newCellLeft.innerHTML = "<a href=" + channelUrl + "><img class='img' src=" + logo + ">" + username + "</a>";
  newCellRight.innerHTML = streamingDetail;   

function addFccRow(json) {
  var channelUrl = "";
  var logo = "";
  var streaming = ? : "Offline";
  addRow(channelUrl, logo, "FreeCodeCamp", streaming, 0);

function addLiveStreamerRows(data) {
  data.streams.forEach(function(value) {
    var logo =;
    var name =;
    var channelUrl =;
    var streaming =;
    addRow(channelUrl, logo, name, streaming, -1);

function addInvalidAccountRow(json){
  if (json.error) {
    addRow("", "", json.message, "", -1);
  else {
    console.log("account exists");

$.getJSON('', addFccRow);

$.getJSON('', addLiveStreamerRows);

$.getJSON('', addInvalidAccountRow);

$.getJSON('', addInvalidAccountRow);