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 Hey' Twitch!
          li(data-display='getdata').activeMenu All
          li(data-display='online').online Online
          li(data-display='offline').offline Offline
        input(type='text' ng-model='searchText')#searchBar

        li#people(ng-repeat='user in getdata | filter:searchText')
          a(href='{{}}' target='_blank') {{}}
            img(ng-src='{{}}' err-src=''
            ng-class="{'online': user.status, 'offline': !user.status, 'noPhoto': !}"
            span.title {{user.statusTitle}}


                @import "bourbon";
@import url(|BenchNine);

$red: #F47564;
$grey: #E4E0E1;
$green: #2FCF65;
$black: #050405;
$blue: #4545C9;

$font1: Varela Round, sans-serif;
$font2: BenchNine, sans-serif;

body {
  background: lighten($black, 5);

#mainMenu li{
  vertical-align: middle;
  display: table-cell;
  background: $blue;
.activeMenu {
     border-bottom: 10px solid lighten($blue, 30);
  border-bottom: 10px solid $green;
  border-bottom: 10px solid $red;

main {
  margin: 0 auto;
  width: 300px;
  background: white;
  display: table;

header {
  height: 60px;
    background-color: $blue;
    position: relative;
  font-size: 40px;

ul {
      margin-top: 0;
      padding-left: 0;

li {
      position: relative;
      list-style-type: none;
      display: inline-block;
      color: white;
      padding-left: 30px;
      padding-top: 15px;
      padding-bottom: 16px;
      padding-right: 25px;
      border-right: .5px solid lighten(white, 10);
      &:first-child {
        padding-right: 35px;
      &:last-child {
        border-right: none;
      &:hover {
        cursor: pointer;
  #searchMenu {
    margin-top: 20px;
    text-align: center;
    position: relative;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid $grey;
    #searchBar {
      position: relative;
      width: 70%;
      text-align: left;
      line-height: 20px;
      border-radius: 20px;
      border: 1px solid $grey;
      outline: none;
      padding-left: 40px;
      padding-right: 20px;
      font-size: .8em;
      font-family: $font2;
    #searchIcon {
      position: absolute;
      z-index: 1;
      padding-top: 3px;
      left: 25px;
      color: $grey;
     li {
       margin: 10px;
       font-family: $font2;
        list-style-type: none;
        display: block;
        padding-left: 20px;
        position: relative;
        padding-top: 10px;
        padding-bottom: 10px;
      &:nth-child(even) {
        background-color: lighten($grey, 8);
       a {
         text-decoration: none;
         color: $black;
      .people {
        position: absolute;
        line-height: 50px;
        text-align: left;
      .pic {
      height: 50px;
        width: 50px;
        border-radius: 50%;
        margin: 5px;
        vertical-align: text-top;
        display: table-cell;
    } {
  border:3px solid #2FCF65;
.pic.offline {
  border:3px solid $red;
       .pic.noPhoto {
         background: darken($grey, 10%);
         color: black;
         font-size: .90em;
         text-align: right;
         margin-left: 0px;
         right: -5px;
         width: 200px;
         white-space: nowrap;
         overflow: hidden;
         text-overflow: ellipsis
  h1 {
  font-family: $font1;
  text-align: justified;
    color: #FFFFAA;
    font-size: 90px;
    margin-bottom: auto;
    margin-top: -18px;
    margin-left: -8px;


                var app = angular.module('heyTwitch', []);
app.controller('MainCtrl', function($scope, $http) {

  var users = ["freecodecamp", "GeoffStorbeck", "terakilobyte", "habathcx", "notmichaelmcdonald", "RobotCaleb", "medrybw", "comster404", "brunofin", "thomasballinger", "joe_at_underflow", "noobs2ninjas", "mdwasp", "beohoff", "xenocomagain"];

  var count = 0;
  count = users.length;

  $scope.getdata = [];
  $scope.tempData = [];
  $ = [];
  $scope.offline = []; {


  function addData(username) {
    var temp = {};
    var url = "" + username + "?callback=?";
    $.getJSON(url, function() {}).done(function(data) {
      if ( === null) {
        //console.log("Stream is null for " + username);
        url = "" + username + "?callback=?";
        $.getJSON(url, function(data) {
          addPlayer(username, data);
      } else {
        addPlayer(username, data);

  //Add player to list of players
  function addPlayer(username, data) {
    //Check if user online or offline
    if (data["error"] == "Unprocessable Entity"){
    if (data["error"] == "Not Found") {
    if ( {
      var i =,
        name = i.display_name,
        temp = {
          "username": name,
          "data": i,
          "status": true,
          "statusTitle": i.status
    var temp = {
      "username": username,
      "data": data,
      "status": false,
  $('#mainMenu li').on('click', function() {

    if ($(this).data('display') === 'getdata') {
      $scope.getdata = $scope.tempData;
    } else if ($(this).data('display') === 'online') {
      $scope.getdata = $;
    } else {
      $scope.getdata = $scope.offline;

    $('#mainMenu li').removeClass('activeMenu');