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


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.


                <!doctype html>
    <script src=''></script>
    <script src=''></script>
    <script src=''></script>
    <script src=""></script>
    <script src=''></script>
    <link href='//' rel='stylesheet'>
    <script data-template-name='application' type='text/x-handlebars'>
      <div class="container">
      <h4>Properties to Send</h4>
      Color: {{input type="text" value=data.color}}
      Background-Color: {{input type="text" value=data.bgColor}}
      <input type="submit" {{action 'publish'}} />
      <br />
      <div class="well" {{bind-attr style="theStyle"}}>{{sample}}</div>
      <svg {{bind-attr style="theStyle"}} width="100" height="100">
        <circle {{bind-attr style="theStyle"}} cx="50" cy="50" r="40" />
      window.Mini = Ember.Application.create();
      var user_id = "User " + Math.round(Math.random() * 1000);

      Mini.PubNub = PubNubEmber.extend({
        cfg: {
          subscribe_key: 'demo',
          publish_key: 'demo',
          uuid: user_id

      Mini.ApplicationController = Ember.Controller.extend({
        channel: 'The EmberJS Dynamic SVG Channel',
        data: new Ember.Object(),
        user_id: user_id,
        sample: 'Welcome to The EmberJS Dynamic SVG Channel',
        theStyle: function() {
          var fill = this.get('data').get('color');
          var color = this.get('data').get('color');
          var bgColor = this.get('data').get('bgColor');
          return "fill: "+ fill + "; color: " + color + "; background-color: " + bgColor;
        }.property('data.fill', 'data.color', 'data.bgColor'),

        init: function() {
          this.get('data').set('fill', 'aqua');
          this.get('data').set('color', 'aqua');
          this.get('data').set('bgColor', 'navy');

        actions: {
          // set up an Ember Action to publish a message
          publish: function() {
            var outState = {
              color: this.get('data').get('color'),
              bgColor: this.get('data').get('bgColor'),

              channel: this.get('channel'),
              message: outState