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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div id="target">Loading...</div>
<script id="template" type="x-tmpl-mustache">
  <ul>
    {{#links}}
    <li>
      {{#data.author.name}}
        {{.}}:
      {{/data.author.name}}
      {{data.content}}
    </li>
    {{/links}}
  </ul>
</script>
            
          
!
            
              
function formatMentions(url) {
  // getJSON has CORS problems now, so fakeJSON emulates it with harwired data in the meantime
  $.fakeJSON(url,function(data) {
    var template = $('#template').html();
    Mustache.parse(template);   // optional, speeds up future uses
    var rendered = Mustache.render(template, data);
    $('#target').html(rendered);
  })
}

$(function() {
  formatMentions(
    'https://webmention.io/api/mentions?target=http://indiewebcamp.com/events/2014-11-19-homebrew-website-club');
});

$.fakeJSON = function(url,callback) {
  callback(
    {
    "links": [
        {
            "data": {
                "author": {
                    "name": "Tantek \u00c7elik",
                    "photo": "https://pbs.twimg.com/profile_images/423350922408767488/nlA_m2WH.jpeg",
                    "url": "https://twitter.com/t"
                },
                "content": "favorited this.\n\n",
                "name": "Tantek \u00c7elik favorited this.",
                "url": "https://brid-gy.appspot.com/like/twitter/gRegorLove/533278240521998338/11628"
            },
            "id": 11756,
            "source": "https://brid-gy.appspot.com/like/twitter/gRegorLove/533278240521998338/11628",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-14T17:15:05+00:00"
        },
        {
            "data": {
                "content": "\n    Sunish Oturkar\n    \n\n  is invited.",
                "name": "Sunish Oturkar is invited.",
                "url": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/1802577"
            },
            "id": 11755,
            "source": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/1802577",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-14T17:04:40+00:00"
        },
        {
            "data": {
                "author": {
                    "name": "gRegor Morrill",
                    "photo": "/assets/img/profile.jpg",
                    "url": "http://gregorlove.com"
                },
                "content": "Join us for Homebrew Website Club next Wednesday! http://indiewebcamp.com/events/2014-11-19-homebrew-website-club https://www.facebook.com/events/1487022768228634/ cc @pitchdesign @marihuertas @dentonjacobs",
                "published": "2014-11-14T09:20:07+00:00",
                "published_ts": 1415978407,
                "url": "http://gregorlove.com/notes/2014/11/14/1/"
            },
            "id": 11750,
            "source": "http://gregorlove.com/notes/2014/11/14/1/",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-14T15:20:10+00:00"
        },
        {
            "data": {
                "content": "\n    Margot Harrington\n    \n\n  is invited.",
                "name": "Margot Harrington is invited.",
                "url": "https://brid-gy.appspot.com/rsvp/facebook/27301982/1487022768228634/506306793"
            },
            "id": 11726,
            "source": "https://brid-gy.appspot.com/rsvp/facebook/27301982/1487022768228634/506306793",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-13T18:59:42+00:00"
        },
        {
            "data": {
                "author": {
                    "name": "Gregor Morrill",
                    "photo": "https://graph.facebook.com/27301982/picture?type=large",
                    "url": "https://facebook.com/27301982"
                },
                "content": "is attending.",
                "name": "Gregor Morrill is attending.",
                "url": "https://brid-gy.appspot.com/rsvp/facebook/27301982/1487022768228634/27301982"
            },
            "id": 11725,
            "source": "https://brid-gy.appspot.com/rsvp/facebook/27301982/1487022768228634/27301982",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-13T18:59:18+00:00"
        },
        {
            "data": {
                "author": {
                    "name": "Laurence Miotto",
                    "photo": "https://graph.facebook.com/1582266363/picture?type=large",
                    "url": "https://facebook.com/1582266363"
                },
                "content": "might attend.",
                "name": "Laurence Miotto might attend.",
                "url": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/1582266363"
            },
            "id": 11722,
            "source": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/1582266363",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-13T18:36:33+00:00"
        },
        {
            "data": {
                "content": "\n    John Brian Kirby\n    \n\n  is invited.",
                "name": "John Brian Kirby is invited.",
                "url": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/768030371"
            },
            "id": 11721,
            "source": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/768030371",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-13T18:36:03+00:00"
        },
        {
            "data": {
                "content": "\n    Kristen Parks\n    \n\n  is invited.",
                "name": "Kristen Parks is invited.",
                "url": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/53300263"
            },
            "id": 11720,
            "source": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/53300263",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-13T18:35:40+00:00"
        },
        {
            "data": {
                "content": "\n    Jessica Spengler\n    \n\n  is invited.",
                "name": "Jessica Spengler is invited.",
                "url": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/538823525"
            },
            "id": 11718,
            "source": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/538823525",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-13T18:33:46+00:00"
        },
        {
            "data": {
                "content": "\n    Jeremy Keith\n    \n\n  is invited.",
                "name": "Jeremy Keith is invited.",
                "url": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/695591480"
            },
            "id": 11717,
            "source": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/695591480",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-13T18:33:28+00:00"
        },
        {
            "data": {
                "content": "\n    Shing Wong\n    \n\n  is invited.",
                "name": "Shing Wong is invited.",
                "url": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/1230178"
            },
            "id": 11716,
            "source": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/1230178",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-13T18:31:21+00:00"
        },
        {
            "data": {
                "content": "\n    Britni Sandberg\n    \n\n  is invited.",
                "name": "Britni Sandberg is invited.",
                "url": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/19713097"
            },
            "id": 11715,
            "source": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/19713097",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-13T18:31:00+00:00"
        },
        {
            "data": {
                "content": "\n    Mamie Rheingold\n    \n\n  is invited.",
                "name": "Mamie Rheingold is invited.",
                "url": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/205868"
            },
            "id": 11714,
            "source": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/205868",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-13T18:30:41+00:00"
        },
        {
            "data": {
                "content": "\n    Stephen Wyatt Bush\n    \n\n  is invited.",
                "name": "Stephen Wyatt Bush is invited.",
                "url": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/56702902"
            },
            "id": 11713,
            "source": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/56702902",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-13T18:30:19+00:00"
        },
        {
            "data": {
                "content": "\n    Blaine Cook\n    \n\n  is invited.",
                "name": "Blaine Cook is invited.",
                "url": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/500103523"
            },
            "id": 11712,
            "source": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/500103523",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-13T18:29:58+00:00"
        },
        {
            "data": {
                "content": "\n    Ash Williams\n    \n\n  is invited.",
                "name": "Ash Williams is invited.",
                "url": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/2053809"
            },
            "id": 11711,
            "source": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/2053809",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-13T18:29:43+00:00"
        },
        {
            "data": {
                "content": "\n    Mary Specht\n    \n\n  is invited.",
                "name": "Mary Specht is invited.",
                "url": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/7402078"
            },
            "id": 11710,
            "source": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/7402078",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-13T18:29:25+00:00"
        },
        {
            "data": {
                "content": "\n    Will Norris\n    \n\n  is invited.",
                "name": "Will Norris is invited.",
                "url": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/625871840"
            },
            "id": 11709,
            "source": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/625871840",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-13T18:29:00+00:00"
        },
        {
            "data": {
                "content": "\n    Chris Messina\n    \n\n  is invited.",
                "name": "Chris Messina is invited.",
                "url": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/502411873"
            },
            "id": 11708,
            "source": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/502411873",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-13T18:28:40+00:00"
        },
        {
            "data": {
                "content": "\n    Jo\u00ebl Franusic\n    \n\n  is invited.",
                "name": "Jo\u00ebl Franusic is invited.",
                "url": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/651196926"
            },
            "id": 11707,
            "source": "https://brid-gy.appspot.com/rsvp/facebook/12802152/714336951990549/651196926",
            "target": "http://indiewebcamp.com/events/2014-11-19-homebrew-website-club",
            "verified": true,
            "verified_date": "2014-11-13T18:28:17+00:00"
        }
    ]
    })
};

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console