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.

            
              <input placeholder="Search..." 
       id="search" 
       type="text" 
       autocomplete="off"
       onchange="updateResults()"
       onkeyup="updateResults()" />
<div style="position: absolute; left: 0; right: 0; z-index: -1">
  <center><h1>No items found</h1></center>
</div>
<div id="result">
  <center>
    <h1>Loading...</h1>
  </center>
</div>
            
          
!
            
              body, input, a {
  font-family: Arial;
  color: white;
  font-size: 13px;
}
#search {
  background: black;
  width: 100%;
  border-radius: 4px;
  padding: 10px; border: 0;
  &:focus { outline: 0; }
}
body, center { background: #333333; }
body {
  padding-right: 20px;
  color: gray;
}
article {
  border-radius: 4px;
  margin-top: 7px;
  padding: 11px 10px 1px 11px;
  background: #1d1d1f;
  margin-right: -20px;
}
a { text-decoration: none; }
h2 { margin: 0; padding: 0; overflow: hidden; }
p { margin: 7px 0 10px 0; }
            
          
!
            
              var spreex = new Myda('spreex');

function updateResults() {
  loadPosts().then(showPosts);
}

function loadPosts() {
  return spreex.entities.getChildren(
    'extensions',
    $('#search').val(), 6);
}

function showPosts(posts) {
  $('#result').html(
    posts.map(toHTML).join('\n'));
}

function toHTML(p) {
  return ('<article>' +
    '<a target="_blank" href='+
          p.fields.sourceCodeURL+'>' +
    '<h2>'+p.fields.title+'</h2></a>'+
    '<p>'+p.fields.description+'</p>' +
    '</article>');
}

spreex.connect().then(updateResults);
            
          
!
999px
Loading ..................

Console