Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <br>

<div class="container">
    <h1 class="title">Frontend live filtering</h1>
    <i>
        Filter local HTML data using <a href="https://www.npmjs.com/package/list.js">list.js</a> and Bulma for CSS stylng.
    </i>
    <br>
    <br>
    </p>
    The view starts unfiltered, so you can enter a repo name or part of a name to reduce e.g. "react" (one item found) or "quickstart" (two items found).
    </p>
</div>

<br>
<!-- The outer div, referenced by the script tag when setting up List object -->
<div id="repos">

    <div class="container">
        <!-- Filter controls -->
        <div class="field">
            <p class="control has-icons-left">
                <input class="search input" type="text" placeholder="Search repo names" />
                <span class="icon is-left">
                    <i class="fas fa-search" aria-hidden="true"></i>
                </span>
            </p>
        </div>
    </div>

    <br />

    <div class="container">
        <!-- Mark the outside of the list with "list" class to enable filtering.  -->
        <div id="repo-cards" class="list">

            <!-- Artists Portfolio -->
            <div>
                <!-- Use "list-name" to enable for "name" attribute and set "data-name" with the value value to match on. -->
                <p class="title list-name" data-name="aggre-git"><a href="https://github.com/MichaelCurrin/artists-portfolio">artists-portfolio</a></p>

                <p>Website with an image gallery, built on Jekyll and the Aperture theme</p>
                <p>
                    Commits: 77
                </p>
            </div>

            <br>

            <!-- React -->
            <div>
                <p class="title list-name" data-name="react-create-app-quickstart"><a href="https://github.com/MichaelCurrin/react-create-app-quickstart">react-create-app-quickstart</a>
                </p>

                <p>
                    Minimal React app template that uses CI to deploy to Github Pages
                </p>
                <p>
                    Commits: 59<br />
                </p>
            </div>

            <br>

            <!-- Jekyll blog -->
            <div>
                <p class="title list-name" data-name="jekyll-blog-demo"><a href="https://github.com/MichaelCurrin/jekyll-blog-demo">jekyll-blog-demo</a>
                </p>
                <p>
                    Minimal base for a static website built with Jekyll and a theme.
                </p>
                <p>
                    Commits: 109<br />
                </p>
            </div>

            <br>

            <!-- JavaScript bundling -->
            <div>
                <p class="title list-name" data-name="javascript-bundling-quickstarts"><a href="https://github.com/MichaelCurrin/javascript-bundling-quickstarts">javascript-bundling-quickstarts</a>
                </p>

                <p>
                    How to bundle your JS as a single script - using Webpack, Browserify, Babel or TypeScript
                </p>
                <p>
                    Commits: 52<br />
                </p>
            </div>
        </div>
    </div>
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                var options = {
    valueNames: [
        {
            name: "list-name",
            attr: "data-name"
        }
    ]
};
var userList = new List("repos", options);

              
            
!
999px

Console