Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                
              
            
!

CSS

              
                
              
            
!

JS

              
                // modifiers for skin tones on the Fitzpatrick scale
const modifiers = [
  '\u{1f3fb}', // skin type 1-2
  '\u{1f3fc}', // skin type 3
  '\u{1f3fd}', // skin type 4
  '\u{1f3fe}', // skin type 5
  '\u{1f3ff}', // skin type 6
];

// baby emoji with fitzpatrick skin tone 4
const baby_4 = 'πŸ‘ΆπŸ½';

// removes skin tone modifiers from an emoji
function removeModifier (emoji) {
  var ret = emoji;
  for(let i = 0; i < modifiers.length; i++) {
    ret = ret.replace(modifiers[i],'');
  }
  return ret;
}

const baby = removeModifier(baby_4);
// πŸ‘Ά

// add modifiers
for(let i = 0; i < modifiers.length; i++) {
  console.log(baby + modifiers[i]);
}
// πŸ‘ΆπŸ»
// πŸ‘ΆπŸΌ
// πŸ‘ΆπŸ½
// πŸ‘ΆπŸΎ
// πŸ‘ΆπŸΏ

              
            
!
999px

Console