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 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


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.


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.





                input {
  width: 350px;
  margin: 4px;

div.menu_info {
  display: none;


See for more info 
on the excellent jasmine-jquery library.

describe("Fixture Loading Test Suite", function() {
  var fixtures = '', menuDivSelector = 'div#1520_1';
  //jasmine.getFixtures().fixturesPath = '';
  beforeAll(function(done) {
      function(html) {
        // Success! Do stuff with data.
        var tempDom   = $('<output>').append($.parseHTML(html, null, true)),
            content   = tempDom.find('div#wpbody-content');
        fixtures = jasmine.getFixtures().set( content.html() );
  describe('Verify that fixture elements are accessible by jasmine.', function() {
    it ("Form should be loaded.", function() {
      var form = fixtures.find('form');
      expect( form ).toBeInDOM();
      expect( form.length ).toEqual(1);
      var header = form.find('h2');
      //console.log( header );
      expect( header ).toBeInDOM();
      expect( header.length ).toBeGreaterThan(0);
      expect( header.get(0).innerText ).toEqual("Carluccio's");

//this code appends my blurb after the Jasmine report is loaded!
MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
// define a new observer
var obs = new MutationObserver(function(mutations, observer) {
    // look through all mutations that just occured
    for(var i=0; i<mutations.length; ++i) {
        // look through all added nodes of this mutation
        for(var j=0; j<mutations[i].addedNodes.length; ++j) {
            var addedNode = mutations[i].addedNodes[j];
            if(addedNode.className == "jasmine_html-reporter") {
                    .css("text-align", "left")
                      .html('If you found this demo useful, consider helping out this struggling writer by '
                           +'<a href="" target="_blank">donating $1 dollar</a> '
                           +'(secure PayPal link) for a coffee or purchasing one of my songs from '
                           +'<a href="" target="_blank">'
                           +'</a> or <a href="'
                           +'field-keywords=Rob%20Gravelle&index=digital-music&search-type=ss" target="_blank">'
                           +'</a> for only 0.99 cents each.</p>'),
                    .css("text-align", "left")
                      .html('Rob uses and recommends <a href="" target="_blank">MochaHost</a>,'
                           +' which provides Web Hosting for as low as $1.95 per month, as well as unlimited emails and disk space!')

// have the observer observe foo for changes in children
obs.observe(document.body, {
  childList: true