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.


                <div class="artist_container"></div>





                // Use ajax to retrive CSV file from google drive
  url: '',
  success: function(data) {
    // Convert CSV data to JS Object (JSON). This uses jquery.csv.min.js
    artist_data = $.csv.toObjects(data);
    x = 0;
    artist_data.forEach(function() {
      // Skip this user if the 'is_visible' field is empty or 0 (assuming you have an is_visible field to hide/show people)
      // if(artist_data[x]['is_visible'] == 0) return;
      // Extract image id from Google Drive url
      image_string = artist_data[x]['Bio Picture'];
      image_id_pos = image_string.indexOf('id=') + 3;
      image_id = image_string.substr(image_id_pos);
      // Loop through all rows in spreadsheet and create a new div for each person
        <div class="artist">
           <h2>` + artist_data[x]['First Name'] + `</h2>
           <img src="` + image_id + `&sz=w500-h500">
           <p>` + artist_data[x]['Bio Picture'] + `</p>
      // Add 1 to x to move to next row of spreadsheet
      x = x + 1;