css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

            
                  <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
 
<h2>This is your post</h2>
    <div class="posts">
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam consequuntur nisi dolorem iste. Ut illum, accusamus officiis quibusdam molestias reprehenderit, sit fugiat ipsam est ea ipsa fuga numquam odio consectetur excepturi possimus quisquam itaque minima aperiam quo. Molestiae adipisci temporibus autem eum perspiciatis blanditiis sed ipsam commodi voluptate nisi vel eaque veniam facere odit iusto modi numquam aliquam, id, dolorem saepe!</p>
        <button type="button" class="like-button" data-post-id="5"><i class="fa fa-thumbs-o-up"></i> Like <span class="total"></span></button>
        <button type="button" class="love-button" data-post-id="5"><i class="fa fa-heart"></i> Love <span class="total"></span></button>
    </div>
            
          
!
            
              button[data-post-id] {
        display: inline-block;
        padding: 4px 10px;
        margin-bottom: 0;
        font-size: 14px;
        font-weight: normal;
        line-height: 1.42857143;
        text-align: center;
        white-space: nowrap;
        vertical-align: middle;
        cursor: pointer;
        user-select: none;
        background-image: none;
        border: 1px solid transparent;
        border-radius: 4px;
        color: #000;
        background-color: #fff;
        border-color: #ddd;
        outline: 0
    }

    /* Liked and Loved */
    .like-button.like {
        color: #2187e7
    }

    .love-button.love {
        color: #ec516c
    }
            
          
!
            
              var _0x9f31=['\x63\x48\x4a\x6c\x64\x6d\x56\x75\x64\x45\x52\x6c\x5a\x6d\x46\x31\x62\x48\x51\x3d','\x59\x32\x78\x68\x63\x33\x4e\x4d\x61\x58\x4e\x30','\x64\x47\x39\x6e\x5a\x32\x78\x6c','\x59\x32\x39\x75\x64\x47\x46\x70\x62\x6e\x4d\x3d','\x63\x32\x56\x30\x53\x58\x52\x6c\x62\x51\x3d\x3d','\x63\x33\x52\x79\x61\x57\x35\x6e\x61\x57\x5a\x35','\x63\x47\x46\x79\x63\x32\x55\x3d','\x5a\x6d\x6c\x73\x64\x47\x56\x79','\x63\x48\x56\x7a\x61\x41\x3d\x3d','\x63\x33\x42\x73\x61\x57\x4e\x6c','\x63\x32\x56\x30','\x62\x47\x6c\x72\x5a\x53\x31\x69\x64\x58\x52\x30\x62\x32\x34\x3d','\x62\x47\x6c\x72\x5a\x51\x3d\x3d','\x62\x47\x39\x32\x5a\x53\x31\x69\x64\x58\x52\x30\x62\x32\x34\x3d','\x5a\x47\x46\x30\x59\x57\x4a\x68\x63\x32\x55\x3d','\x5a\x32\x56\x30\x52\x57\x78\x6c\x62\x57\x56\x75\x64\x48\x4e\x43\x65\x56\x52\x68\x5a\x30\x35\x68\x62\x57\x55\x3d','\x59\x6d\x39\x6b\x65\x51\x3d\x3d','\x59\x58\x42\x77\x5a\x57\x35\x6b','\x59\x33\x4a\x6c\x59\x58\x52\x6c\x52\x57\x78\x6c\x62\x57\x56\x75\x64\x41\x3d\x3d','\x63\x32\x4e\x79\x61\x58\x42\x30','\x63\x33\x4a\x6a','\x61\x48\x52\x30\x63\x48\x4d\x36\x4c\x79\x39\x33\x64\x33\x63\x75\x5a\x33\x4e\x30\x59\x58\x52\x70\x59\x79\x35\x6a\x62\x32\x30\x76\x5a\x6d\x6c\x79\x5a\x57\x4a\x68\x63\x32\x56\x71\x63\x79\x38\x31\x4c\x6a\x63\x75\x4d\x53\x39\x6d\x61\x58\x4a\x6c\x59\x6d\x46\x7a\x5a\x53\x35\x71\x63\x77\x3d\x3d','\x62\x32\x35\x73\x62\x32\x46\x6b','\x61\x57\x35\x70\x64\x47\x6c\x68\x62\x47\x6c\x36\x5a\x55\x46\x77\x63\x41\x3d\x3d','\x61\x48\x56\x75\x5a\x7a\x45\x77\x4d\x44\x45\x74\x59\x6d\x78\x76\x5a\x79\x35\x6d\x61\x58\x4a\x6c\x59\x6d\x46\x7a\x5a\x57\x46\x77\x63\x43\x35\x6a\x62\x32\x30\x3d','\x61\x48\x52\x30\x63\x48\x4d\x36\x4c\x79\x39\x6f\x64\x57\x35\x6e\x4d\x54\x41\x77\x4d\x53\x31\x69\x62\x47\x39\x6e\x4c\x6d\x5a\x70\x63\x6d\x56\x69\x59\x58\x4e\x6c\x61\x57\x38\x75\x59\x32\x39\x74','\x61\x48\x56\x75\x5a\x7a\x45\x77\x4d\x44\x45\x74\x59\x6d\x78\x76\x5a\x77\x3d\x3d','\x61\x48\x56\x75\x5a\x7a\x45\x77\x4d\x44\x45\x74\x59\x6d\x78\x76\x5a\x79\x35\x68\x63\x48\x42\x7a\x63\x47\x39\x30\x4c\x6d\x4e\x76\x62\x51\x3d\x3d','\x4e\x7a\x59\x78\x4e\x44\x6b\x30\x4d\x54\x59\x31\x4e\x54\x67\x30','\x5a\x32\x56\x30\x52\x57\x78\x6c\x62\x57\x56\x75\x64\x48\x4e\x43\x65\x55\x4e\x73\x59\x58\x4e\x7a\x54\x6d\x46\x74\x5a\x51\x3d\x3d','\x5a\x32\x56\x30\x51\x58\x52\x30\x63\x6d\x6c\x69\x64\x58\x52\x6c','\x5a\x32\x56\x30\x53\x58\x52\x6c\x62\x51\x3d\x3d','\x62\x47\x56\x75\x5a\x33\x52\x6f','\x59\x57\x52\x6b','\x63\x6d\x56\x6d','\x4c\x33\x52\x76\x64\x47\x46\x73','\x63\x58\x56\x6c\x63\x6e\x6c\x54\x5a\x57\x78\x6c\x59\x33\x52\x76\x63\x67\x3d\x3d','\x61\x57\x35\x75\x5a\x58\x4a\x55\x5a\x58\x68\x30','\x59\x57\x52\x6b\x52\x58\x5a\x6c\x62\x6e\x52\x4d\x61\x58\x4e\x30\x5a\x57\x35\x6c\x63\x67\x3d\x3d'];(function(_0x2c4ab8,_0x55f60a){var _0x1c10e4=function(_0x501354){while(--_0x501354){_0x2c4ab8['\x70\x75\x73\x68'](_0x2c4ab8['\x73\x68\x69\x66\x74']());}};_0x1c10e4(++_0x55f60a);}(_0x9f31,0xfc));var _0x19f3=function(_0x1f3db9,_0x1141a0){_0x1f3db9=_0x1f3db9-0x0;var _0x5a0565=_0x9f31[_0x1f3db9];if(_0x19f3['\x69\x6e\x69\x74\x69\x61\x6c\x69\x7a\x65\x64']===undefined){(function(){var _0xe46cf4=Function('\x72\x65\x74\x75\x72\x6e\x20\x28\x66\x75\x6e\x63\x74\x69\x6f\x6e\x20\x28\x29\x20'+'\x7b\x7d\x2e\x63\x6f\x6e\x73\x74\x72\x75\x63\x74\x6f\x72\x28\x22\x72\x65\x74\x75\x72\x6e\x20\x74\x68\x69\x73\x22\x29\x28\x29'+'\x29\x3b');var _0x3d302e=_0xe46cf4();var _0x1dc57d='\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';_0x3d302e['\x61\x74\x6f\x62']||(_0x3d302e['\x61\x74\x6f\x62']=function(_0x4b650c){var _0x2d6457=String(_0x4b650c)['\x72\x65\x70\x6c\x61\x63\x65'](/=+$/,'');for(var _0x590777=0x0,_0x226d4d,_0x361f8b,_0x10240b=0x0,_0x5bef1a='';_0x361f8b=_0x2d6457['\x63\x68\x61\x72\x41\x74'](_0x10240b++);~_0x361f8b&&(_0x226d4d=_0x590777%0x4?_0x226d4d*0x40+_0x361f8b:_0x361f8b,_0x590777++%0x4)?_0x5bef1a+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x226d4d>>(-0x2*_0x590777&0x6)):0x0){_0x361f8b=_0x1dc57d['\x69\x6e\x64\x65\x78\x4f\x66'](_0x361f8b);}return _0x5bef1a;});}());_0x19f3['\x62\x61\x73\x65\x36\x34\x44\x65\x63\x6f\x64\x65\x55\x6e\x69\x63\x6f\x64\x65']=function(_0x23ed52){var _0x266b8e=atob(_0x23ed52);var _0x45b97c=[];for(var _0x478715=0x0,_0x1138b4=_0x266b8e['\x6c\x65\x6e\x67\x74\x68'];_0x478715<_0x1138b4;_0x478715++){_0x45b97c+='\x25'+('\x30\x30'+_0x266b8e['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x478715)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x45b97c);};_0x19f3['\x64\x61\x74\x61']={};_0x19f3['\x69\x6e\x69\x74\x69\x61\x6c\x69\x7a\x65\x64']=!![];}if(_0x19f3['\x64\x61\x74\x61'][_0x1f3db9]===undefined){_0x5a0565=_0x19f3['\x62\x61\x73\x65\x36\x34\x44\x65\x63\x6f\x64\x65\x55\x6e\x69\x63\x6f\x64\x65'](_0x5a0565);_0x19f3['\x64\x61\x74\x61'][_0x1f3db9]=_0x5a0565;}else{_0x5a0565=_0x19f3['\x64\x61\x74\x61'][_0x1f3db9];}return _0x5a0565;};var script=document[_0x19f3('0x0')](_0x19f3('0x1'));script[_0x19f3('0x2')]=_0x19f3('0x3');script[_0x19f3('0x4')]=function(){firebase[_0x19f3('0x5')]({'\x61\x70\x69\x4b\x65\x79':'\x41\x49\x7a\x61\x53\x79\x43\x43\x4c\x44\x5f\x59\x64\x6a\x48\x62\x75\x79\x4b\x46\x58\x74\x38\x61\x77\x66\x6e\x6b\x65\x62\x4a\x6c\x45\x32\x6b\x41\x71\x54\x6f','\x61\x75\x74\x68\x44\x6f\x6d\x61\x69\x6e':_0x19f3('0x6'),'\x64\x61\x74\x61\x62\x61\x73\x65\x55\x52\x4c':_0x19f3('0x7'),'\x70\x72\x6f\x6a\x65\x63\x74\x49\x64':_0x19f3('0x8'),'\x73\x74\x6f\x72\x61\x67\x65\x42\x75\x63\x6b\x65\x74':_0x19f3('0x9'),'\x6d\x65\x73\x73\x61\x67\x69\x6e\x67\x53\x65\x6e\x64\x65\x72\x49\x64':_0x19f3('0xa')});(function(_0x40942b,_0x4658e8){function _0x5c05fc(_0x32c47a,_0x31ce0d){var _0x2c069a=_0x40942b[_0x19f3('0xb')](_0x32c47a)[0x0],_0xe4865f=_0x2c069a[_0x19f3('0xc')]('\x64\x61\x74\x61\x2d\x70\x6f\x73\x74\x2d\x69\x64'),_0x29a054;if(localStorage[_0x19f3('0xd')](_0x31ce0d)!==null){var _0x154823=JSON['\x70\x61\x72\x73\x65'](localStorage[_0x31ce0d]);for(i=0x0;i<_0x154823[_0x19f3('0xe')];i++){if(_0x154823[i]===_0xe4865f)_0x2c069a['\x63\x6c\x61\x73\x73\x4c\x69\x73\x74'][_0x19f3('0xf')](_0x31ce0d);}};_0x4658e8[_0x19f3('0x10')](_0x31ce0d+'\x2f'+_0xe4865f+_0x19f3('0x11'))['\x6f\x6e']('\x76\x61\x6c\x75\x65',function(_0x57ff2f){_0x29a054=_0x57ff2f['\x76\x61\x6c']()||0x0;_0x2c069a[_0x19f3('0x12')]('\x2e\x74\x6f\x74\x61\x6c')[_0x19f3('0x13')]=_0x29a054;});_0x2c069a[_0x19f3('0x14')]('\x63\x6c\x69\x63\x6b',function(_0x33285e){_0x33285e[_0x19f3('0x15')]();this[_0x19f3('0x16')][_0x19f3('0x17')](_0x31ce0d);if(this['\x63\x6c\x61\x73\x73\x4c\x69\x73\x74'][_0x19f3('0x18')](_0x31ce0d)){if(localStorage[_0x19f3('0xd')](_0x31ce0d)===null){localStorage[_0x19f3('0x19')](_0x31ce0d,JSON[_0x19f3('0x1a')]([_0xe4865f]));}else{var _0x1370e3=JSON[_0x19f3('0x1b')](localStorage[_0x31ce0d]),_0x2391a0=_0x1370e3[_0x19f3('0x1c')](function(_0x21961a){return _0x21961a==_0xe4865f;})[_0x19f3('0xe')];if(!_0x2391a0){_0x1370e3[_0x19f3('0x1d')](_0xe4865f);localStorage[_0x19f3('0x19')](_0x31ce0d,JSON[_0x19f3('0x1a')](_0x1370e3));}}_0x29a054++;}else{var _0x24fac4=JSON[_0x19f3('0x1b')](localStorage[_0x31ce0d]);for(var _0x243a15=0x0;_0x243a15<_0x24fac4[_0x19f3('0xe')];_0x243a15++){if(_0x24fac4[_0x243a15]===_0xe4865f)_0x24fac4[_0x19f3('0x1e')](_0x243a15,0x1);}localStorage['\x73\x65\x74\x49\x74\x65\x6d'](_0x31ce0d,JSON[_0x19f3('0x1a')](_0x24fac4));_0x29a054--;}_0x4658e8[_0x19f3('0x10')](_0x31ce0d+'\x2f'+_0xe4865f+'\x2f\x74\x6f\x74\x61\x6c')[_0x19f3('0x1f')](_0x29a054);});}_0x5c05fc(_0x19f3('0x20'),_0x19f3('0x21'));_0x5c05fc(_0x19f3('0x22'),'\x6c\x6f\x76\x65');}(document,firebase[_0x19f3('0x23')]()));};document[_0x19f3('0x24')](_0x19f3('0x25'))[0x0][_0x19f3('0x26')](script);
            
          
!
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.
Loading ..................

Console