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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.


  Start <a target="_blank" href="https://github.com/rs/pushd">pushd</a> on your local host using the following command:
  %pre $ redis-server &
  %pre $ npm start

  You're ready to push event using the following command:
    $ curl -d 'msg=Hello world' http://localhost/event/test1 

              @import compass

  margin: 40px
  background-color: red
  color: white

    color: white

    display: none

    background-color: green

      display: none

      display: block
              es = new EventSource('http://localhost/subscribe?events=test1+test2+test3+test4')

es.addEventListener 'open', (e) ->
  $('body').addClass 'connected'

es.addEventListener 'error', (e) ->
  $('body').removeClass 'connected'
es.addEventListener 'message', (e) ->
  data = JSON.parse e.data;
  $('#events').append "<li>#{data.event}: #{data.message.default}"

Loading ..................