cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <div id="resources">
   <h1>Web Development Resources</h1>
   <div class="buttons">
      <button id="info_site">Info Site</button>
      <button id="js_plugin">JS Plugin</button>
      <button id="online_tool">Online Tool</button>
      <button id="wordpress_plugin">Wordpress Plugin</button>
      <button id="show_all">Show All</button>
   </div>
   <table class="resource-grid">
   </table>
</div>
            
          
!
            
              @import "bourbon";

$wp_color : #F9BF3B;
$js_color : #F22613;
$info_color : #4183D7;
$tool_color : #3FC380;
$show_color : #6C7A89;
$tablet : 480px;
$desktop: 960px;

@mixin row_colors($color){
   color: darken($color, 15%);
   background-color: lighten($color, 35%);
   a {
      color: darken($color, 25%);
      font-weight: bold;
      font-size: 1.1em;
   }
}

@mixin button_colors($color) {
   color: darken($color, 15%);
   background-color: lighten($color, 25%);
   border: 3px solid darken($color, 25%);
}

.selected {
   font-weight: bold;
   text-decoration: underline;
}

#resources {
   margin: 2.5%;
   
   h1 {
      text-align: center;
      font-size: 2em;
      font-family: 'Verdana', sans-serif;
      font-weight: 700;
      text-decoration: underline;
   }
}

.resource-grid {
   display: block;
}

.item {
   border: 2px solid black;
   font-family: 'Arial';
   
   td {
      box-sizing: border-box;
      padding: .5em;
      
      &:nth-of-type(2) {
         font-style: italic;
      }
      
      a {
         text-decoration: none;
      }
   }
}

.info_site {
   @include row_colors($info_color);
}
.wordpress_plugin {
   @include row_colors($wp_color);
}
.js_plugin {
   @include row_colors($js_color);
}
.online_tool {
   @include row_colors($tool_color);
}

.buttons {
   display: block;
   width: 100%;
   @include clearfix;
   
   button {
      width: 100%;
      display: inline-block;
      float: left;
      box-sizing: border-box;
      padding: .75em;
      font-size: .75em;
      cursor: pointer;
      
      @media screen and (min-width: $tablet) {
         width: 20%;
      }
      
      &#info_site {
         @include button_colors($info_color);
      }
      &#js_plugin {
         @include button_colors($js_color);
      }
      &#online_tool {
         @include button_colors($tool_color);
      }
      &#wordpress_plugin {
         @include button_colors($wp_color);
      }
      &#show_all {
         @include button_colors($show_color);
      }
   }
}

.search-box {
   text-align: right;
   display: block;
   box-sizing: border-box;
   padding: 1em;
   @include clearfix;
   
   @media screen and (min-width: $tablet) {
      
   }
}
            
          
!
            
              var public_spreadsheet_url = 'https://docs.google.com/spreadsheets/d/1tI-4ympZD6trqJI2dYyqaeoLXFGlG7MduUR_k97-JW8/pubhtml';

function init() {
   Tabletop.init({
      key: public_spreadsheet_url,
      callback: showInfo,
      simpleSheet: true,
      orderby: 'name',
      reverse: false,
   })
}
init();

function showInfo(data, tabletop) {
   console.log(data);
   for (i = 0; i < data.length; i++) {
      var url = data[i].URL;
      var star = data[i].Starred;
      var name = '<td><a href="' + url + '" target="_blank">' + data[i].Name + '</a></td>';
      var type = '<td>' + data[i].Type + '</td>';
      var type_class = data[i].Type.toLowerCase().split(' ').join('_');
      var uses = '<td>' + data[i].Uses + '</td>';
      $('.resource-grid').prepend('<tr class="item ' + type_class + '">' + name + type + uses + url + '</tr>');
   }
}

$(".resource-grid").sieve({
   itemSelector: "tr"
});
$('#resources > div').addClass('search-box');

$('.buttons button').on('click', function() {
   var delay = 150;
   var filter = '.' + $(this).attr('id');
   $('.buttons button').removeClass('selected');
   $(this).addClass('selected');

   if (filter == '.show_all') {
      $('.resource-grid tr').fadeOut(delay).delay(delay).fadeIn(delay);
   } else {
      $('.resource-grid tr').fadeOut(delay);
      $('tr' + filter).delay(delay).fadeIn(delay);
   }
})
            
          
!
999px
Loading ..................

Console