Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                  <div id="sec-top">
    <h1>Charles Mingus</h1>
    <h2 id="lifespan">1922&mdash;1979</h2>

    <a href='https://www.youtube.com/watch?v=__OSyznVDOY' target='playmingus'>
      <img class="oldtime" id="mingus-1" src="https://drive.google.com/uc?export=download&id=0B5iUhKrgTiV-bmJZbGhOZkcyQUk">
    </a>

    <ul id="quotes" class="no-bullets">
      <li><a href="https://www.youtube.com/watch?v=TOZ5wwNOdWY" target="playmingus">&ldquo;Let my children have music! Let them hear live music.&rdquo;</a></li>
    </ul>
    <div class="instructions">
      (Click to hear)
    </div>
  </div>

  <div class="bio-section row">
    <div class="col-sm-6 col-md-4 col-lg-4">
      <img class="section-img oldtime img-responsive" id="mingus-2" src="https://drive.google.com/uc?export=download&id=0B5iUhKrgTiV-Z3haX1BkdnR2X0E">
    </div>

    <div class="col-sm-6 col-md-8 col-lg-8">
      <p class="big-cap">Standing with the greats of jazz such as Charlie Parker and Dizzy Gillespie, <a href="http://mingusmingusmingus.com" target="_blank">Charles Mingus</a> was and remains one of the greatest jazz performers and composers of his era.  Mingus was not only a master of tight big-band composition in the fashion of his personal idol Duke Ellington, he also pioneered experimental free jazz compositions a decade before Coltrane hit the scene.  Wielding his famous upright bass most of the time, and occasionally the piano, Charles Mingus cut a path through jazz from the 1950's through the 70's that is still trod by devotees and imitators today.
    </div>
  </div>

  <div class="bio-section row">
    <div class="col-sm-6 col-md-8 col-lg-8">
      <p class="big-cap">Literally a towering figure in jazz, Charles Mingus was not a gentle giant.  By most accounts of his contemporaries, he was a demanding perfectionist at best and a volatile mean-tempered bully at worst.  Notable for being the only member of Duke Ellington's band to be personally fired by Ellington himself (after allegedly brandishing a fire axe at another performer), Mingus was, to put it mildly, not easy to get along with.  Another story had him dramatically cashiering a member of his own band on-stage by slamming the piano lid shut, nearly breaking the pianist's fingers.  While some of these accounts may have been exaggerated over time to match his stature, there's little doubt that ultimately he lived up to his sobriquet <strong>"The Angry Man of Jazz."</strong> </p>
    </div>
    <div class="col-sm-6 col-md-4 col-lg-4">
      <img class="section-img oldtime img-responsive" id="mingus-3" src="https://drive.google.com/uc?export=download&id=0B5iUhKrgTiV-QW4zMmFvYmMxSEk">
    </div>
  </div>

  <div class="bio-section row">
    <div class="col-sm-6 col-md-4 col-lg-4">
      <img class="section-img oldtime img-responsive" id="mingus-4" src="https://drive.google.com/uc?export=download&id=0B5iUhKrgTiV-VHBsU3FqTXNQSnc">
    </div>
    <div class="col-sm-6 col-md-8 col-lg-8">

      <p class="big-cap">From showcasing his own talents on the bass in <a href="https://www.youtube.com/watch?v=r5j4dou8osU&nohtml5=False" target='playmingus'>Hatian Fight Song</a> to the dissonant free jazz of <a href="https://www.youtube.com/watch?v=ZB6GkA54n_Q" target='playmingus'>Pithecanthropus Erectus</a>,the versatility of Charles Mingus is virtually without peer. Without further ado, a few more of his compositions performed by his own band and various other artists:
      <ul>
        <li>
          <a href="https://soundcloud.com/nickcarlozzi/pithecanthropus-erectus-mingus" target="playmingus">Pithecanthropus Erectus, arranged for piano and guitar.</a>
        </li>
        <li>
          <a href="https://www.youtube.com/watch?v=DXuZBywW4gA" target='playmingus'>Fables of Fabus, live.</a> (Mingus's talent did not extend to singing, but bear with it!)
        </li>
      </ul>
    </div>
  </div>

              
            
!

CSS

              
                body {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14pt;
  background-color: #e6d0b5;
}

h1 {
  font-size: 300%;
  text-shadow: 2px 2px rgba(50, 50, 50, 0.7);
}

#sec-top {
  text-align: center;
}

/* Vertical pics are particularly outsized */
#mingus-2, #mingus-4 {
  max-height: 400px;
}

.bio-section {
  margin: 4rem 1rem;
}

p.big-cap:first-child:first-letter {
  font-size: 150%;
  margin-top: -0.25rem;
  margin-right: 0.1rem;
}


.oldtime {
  padding: 3px;
  background: #450a0a;
  background-repeat: no-repeat;
  background-position: center;
  -webkit-filter: sepia(0.5) drop-shadow(12px 12px 8px rgba(0, 0, 0, 0.7));
  filter: sepia(0.5) drop-shadow(12px 12px 8px rgba(0, 0, 0, 0.7));
}

.no-bullets {
  list-style-type: none;
}

#lifespan {
  margin-top: -0.5em;
}

#quotes {
  font-style: italic;
  margin-top: 2em;
}

.instructions {
  font-size: 75%;
}

              
            
!

JS

              
                // snip from http://stackoverflow.com/questions/8489710/play-an-audio-file-using-jquery-when-a-button-is-clicked

$(document).ready(function() {
        var audioElement = document.createElement('audio');
        // not right now thanks 
        // audioElement.setAttribute('src', 'http://www.uscis.gov/files/nativedocuments/Track%2093.mp3');
        audioElement.setAttribute('autoplay', 'autoplay');
        //audioElement.load()
        $.get();
        audioElement.addEventListener("load", function() {
        audioElement.play();
        }, true);




        $('.play').click(function() {
        audioElement.play();
        });


        $('.pause').click(function() {
        audioElement.pause();
        });



});
              
            
!
999px

Console