Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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.


Auto Save

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.


                <link rel="stylesheet" href="" />

<div class="container">

  <h1>Enforcer RealTime Status</h1>
  <div class="toolbar">
    <span class="toolbar_item fa fa-comments-o"></span>
    <span class="toolbar_item fa fa-check"></span>
    <span class="toolbar_item fa fa-ticket"></span>
    <span class="toolbar_item fa fa-times"></span>
  <a href="#" class="toggle-all">Show All</a>

  <div class="table-control">
      <li>Program Last Seen</li>
      <li>Event Last Seen</li>

        <th><span class="toggle fa fa-caret-right"></span></th>
        <th colspan="4"></th>
        <th>1 WARN</th>
        <th><span class="toggle fa fa-thumb-tack"></span></th>
      </tr><!-- / tr -->
    </thead> <!-- / thead -->
        <td colspan="10">footer</td>
    </tfoot><!-- / tfoot -->
    <tbody class="collapsed" data-collapsable="collapsed">
        <td><input type="checkbox"></td>
        <td>1d 22:06</td>
        <td>55s ago</td>
        <td>ccv spkid_rivals_reply timeout</td>
        <td>1d 21:59 ago</td>
        <td><span class="toggle fa fa-thumb-tack"></span></td>
      </tr><!-- / tr -->
    </tbody><!-- / tbody -->
  </table><!-- / table -->

</div><!-- / .container -->

<script src=""></script>



                @font-face {
  font-family: 'FontAwesome';
  src: url("../fonts/fontawesome-webfont.eot?v=4.3.0");
  src: url("../fonts/fontawesome-webfont.eot?#iefix&v=4.3.0") format("embedded-opentype"), url("../fonts/fontawesome-webfont.woff2?v=4.3.0") format("woff2"), url("../fonts/fontawesome-webfont.woff?v=4.3.0") format("woff"), url("../fonts/fontawesome-webfont.ttf?v=4.3.0") format("truetype"), url("../fonts/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular") format("svg");
  font-weight: normal;
  font-style: normal; }
.collapsed {
  display: none; }

.pinned {
  transform: rotate(45deg); }

body {
  background-image: url("../img/bg_logo.png");
  background-size: 20%;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed; }

.container {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto; }

.table-control {
  background-color: #002d62;
  border-bottom: 1px solid #ffffff;
  box-shadow: 0 1px 0 #002d62;
  padding: .3em 1em;
  color: #ffffff;
  margin-bottom: 1em; }
  .table-control ul {
    display: flex;
    justify-content: space-around;
    padding: 0;
    margin: 0; }
  .table-control li {
    list-style: none; }

table {
  display: flex-table;
  flex-direction: column;
  width: 100%; }

.table-control ul {
  display: flex;
  justify-content: space-between; }

table:nth-child(even) {
  background-color: #e4e4e4; }

th, td {
  text-align: right;
  border: 1px solid #ccc;
  padding: .3em 1em; }
  th:first-child, th:last-child, td:first-child, td:last-child {
    text-align: center; }

.toolbar {
  left: 0;
  background-color: #002d62;
  position: fixed;
  font-size: 2em;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-left: 1px solid transparent;
  box-shadow: 0px 0px 0px 1px #002d62;
  display: flex;
  flex-direction: column;

.toolbar_item {
  padding: .5em;

/*# */



  $('.toggle').click( function(e) {
    if ($(this).hasClass('fa-caret-right')) {
    } else if ($(this).hasClass('fa-caret-down')) {

  $('.toggle-all').click(function(e) {
    if ($(this).text() == "Show All" ) {
      $(this).text("Hide All");
    } else if ($(this).text() == "Hide All" ) {
      $(this).text("Show All");

  $('.toggle.fa-thumb-tack').click(function (){


  // Allow multiple checkbox selection [hold shift and click checkboxes]
  var lastChecked = null;
  var $chkboxes = $('input[type=checkbox]');
  $ {
      if(!lastChecked) {
          lastChecked = this;
      if(e.shiftKey) {
          var start = $chkboxes.index(this);
          var end = $chkboxes.index(lastChecked);
          $chkboxes.slice(Math.min(start,end), Math.max(start,end)+ 1).prop('checked', lastChecked.checked);
      lastChecked = this;