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.


                <section id="container">
  <div id="todayshours"></div>

<p>This isn't currently described in the LibCal v2 support documentation, but if you add a  "<code>callback=?</code>" string to the JSON URL for your library, the hours data is restructured using a JSONP wrapper. For example:</p>
  <li>LibCal JSON: <a href="" target="_blank"></a></li>
  <li>LibCal JSONP: <a href="" target="_blank"></a></li>



                @import "compass/css3";

body { margin: 1em; }
#container { display: flex; }
#todayshours { 
  font-weight: bold; 
  padding: 0.75em; 
  border: 1px solid black; 


                $(document).ready(function() {
  var libcalHours = "";
  $.getJSON(libcalHours, function(data){
    $.each(data.locations, function(i,hours){
      $("#todayshours").append( + '\'s Hours: ' + hours.rendered);
      if (i === 0) return false;  // only show the main location hours