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 class="container">
  <div class="page-header">
       <h1><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> My Favourite Blog Posts on CodePen</h1>
  </div>
  <div class="row">
    <div class="col-md-12">
        <ul id="posts-container" class="list-group"></ul>
    </div>
  </div>
  <div class="row">
    <div class="col-md-12">
      Special thanks to <a href="https://codepen.io/ImagineProgramming/" target="_blank">@ImagineProgramming</a> for the idea - posted as a comment on the first blog above!
    </div>
    <div class="col-md-12">
      <a href="https://get-json.azurewebsites.net/ViewJson/View/f14e2430-4978-288f-1bab-f41abb90459f" target="_blank">Fork this get json post to make your own!</a> IMPORTANT: You must create an account in order to see the fork button.
    </div>
  </div>
</div>
            
          
!
            
              html, body, .container {height:100%;}

.list-group-item a { padding-left:10px; }
            
          
!
            
              var taxonomyId = 'f14e2430-4978-288f-1bab-f41abb90459f';
$.get('https://get-json.azurewebsites.net/api/v1/taxonomy/' + taxonomyId).done(function (data) {
    render(data.taxonomy);  
});

function render(posts) {
  for (var i = 0; i < posts.length; i++) {
    $('#posts-container').append('<li class="list-group-item"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span><a target="_blank"  href="'+getMetaData(posts[i],'url')+'">' + posts[i].name + '</a><a class="author-info pull-right" target="_blank"  href="'+getMetaData(posts[i],'author-url')+'">' + getMetaData(posts[i],'author') + '</a></li>');
  }
}

function getMetaData(post, key) {
  for (var i = 0; i < post.data.length; i++) {
    if (post.data[i].key === key) {
      return post.data[i].value;
    }
  }
}
            
          
!
999px
Loading ..................

Console