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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

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


                <!-- ideally this should be in <head> -->  
<script src="//"></script>

<!-- body -->
<p>Click the play button of the player below in order for playback to begin.</p>
<p>Next song begins at 2:10s into the stream.</p>

<audio id="player" src="//" data-viblast-key="N8FjNTQ3NDdhZqZhNGI5NWU5ZTI=" controls></audio>

<div id="metadata">



                audio {
  height: 150px; // makes the watermark look a bit better

#metadata {
  font-size: 150%;


                var player = document.getElementById("player");

var title, album, composer, url;

player.textTracks.addEventListener('addtrack', function(addTrackEvent) {
  var track = addTrackEvent.track;
  if (track.label !== 'Viblast Metadata Tags') return;
  var cueChangeCb = function(cueChangeEvent) {
    if (track.activeCues.length <= 0) return; // there is not active metadata at the moment.
    title = album = composer = url = '';
    for (var cueIdx = 0; cueIdx < track.activeCues.length; ++cueIdx) {
      var cue = track.activeCues[cueIdx];
      for (var frameIdx = 0; frameIdx < cue.frames.length; ++frameIdx) {
        var frame = cue.frames[frameIdx];
        switch ( {
          case "TIT2":
            title = frame.text;
          case "TALB":
            album = frame.text;
          case "TCOM":
            composer = frame.text;
          case "WXXX":
            url = frame.url;

    var metadataElem = document.getElementById('metadata');
    metadataElem.innerHTML = title + ' by ' + '<a href="' + url + '" target="_blank">' + composer + '</a>'+ (album ? ' on ' + album : '');
  if (track.oncuechange !== undefined) {
    track.addEventListener('cuechange', cueChangeCb, false);
  } else {
    // workaround for
    window.setInterval(cueChangeCb, 1000);
}, false);