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.


                <h1>Pronoun Generator</h1>
<h2>Invent a new identity with the push of a button!</h2>
<div id=output></div>
<input data-button=green type=button onclick=inventIdent() value="Generate Pronoun">
<p>inspired by <a href=></a></p>


                #output {
  margin: 0 auto 2em auto;
  background: white;
  border-radius: 3px;
  padding: 1.5em 0;
  max-width: 400px;
  text-align: center;
#output h2 {
  margin: 0;
[data-button] {
  display: block;
  width: auto !important;
  padding: .5em .75em !important;
  font-size: 18pt !important;
  font-style: italic;
body > p {
  opacity: .5;
  font-style: italic;
  text-align: center;


                function inventIdent(){
  var alphabet = ['a','e','i','o','u','y','b','c','d','f','g','h','j','k','l','m','n','p','q','r','s','t','v','w','x','y','z'],
      pronoun = alphabet[Math.floor(Math.random()*21+6)]+alphabet[Math.floor(Math.random()*6)]+(Math.random()>.5?alphabet[Math.floor(Math.random()*22+5)]:''),
      they = pronoun.substring(0,2)+'y'
      their = pronoun.substring(0,2)+'r'
      phrases = [
        'Yes $pronoun is at the party.',
        'I came to the party with $their.',
        'Nights like tonight $they all celebrate.',
        '$pronoun brought $their’s favorite dessert.',
        '$pronoun made the dessert by $self earlier.'
  output.innerHTML='<h2>Pronoun: '+pronoun.substring(0,1).toUpperCase() + pronoun.substring(1,pronoun.length)+'</h2>'
  for (i=0;i<phrases.length;i++){
    var example = phrases[i]
    example = example.replace(/\$pronoun/g,pronoun).replace(/\$they/g,they).replace(/\$their/g,their)
    example = example.replace(/\$self/g,Math.random()>.5?their+'self':pronoun+'self')
    example = example.substring(0,1).toUpperCase() + example.substring(1,example.length)
onload = function(){inventIdent()}