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.


                <div class="shortcode-toggle toggle-are-you-in-high-school-or-a-recent-high-school-grad closed default border"><h4 class="toggle-trigger"><a href="#">Are you in high school or a recent high school grad?</a></h4>
<div class="toggle-content"><p></p>
<h2><span id="Undergraduate_Admissions">Undergraduate Admissions</span></h2>
  <p>If you’re interested in learning more about applying as an undergraduate our main campus, visit the <a title="Undergraduate Admissions" href="../blank/">undergraduate admissions page</a>.</p>


                .shortcode-toggle { margin: 0 0 1.2em;}
.shortcode-toggle h4 {margin: 0;}
.shortcode-toggle h4 a { display: block; padding: 3px 0 3px 10px; background: #f3f3f3 url(../images/shortcode-toggle-close.png) no-repeat 99% center; }
.shortcode-toggle.closed h4 a  { background-image: url(../images/shortcode-toggle-open.png); }
.shortcode-toggle .toggle-content  { padding: 10px 10px; background: #f9f9f9; }
.shortcode-toggle.closed .toggle-content, .shortcode-toggle .more-text.closed { display: none; }
.shortcode-toggle { display: block; }
.shortcode-toggle.border { border: 1px solid #EBEBEB; }
.shortcode-toggle h4 a {
background-color: #EDC221;


                jQuery(function($) {
  Toggle shortcode
	if ( jQuery( '.shortcode-toggle').length ) {	
		jQuery( '.shortcode-toggle').each( function () {
			var toggleObj = jQuery(this);
			toggleObj.closedText = toggleObj.find( 'input[name="title_closed"]').attr( 'value' );
			toggleObj.openText = toggleObj.find( 'input[name="title_open"]').attr( 'value' );
			// Add logic for the optional excerpt text.
			if ( toggleObj.find( '' ).length ) {
				toggleObj.readMoreText = toggleObj.find( '' ).text();
				toggleObj.readLessText = toggleObj.find( '' ).attr('readless');
				toggleObj.find( '' ).removeAttr('readless');
				toggleObj.find( 'a.more-link' ).click( function () {
					var moreTextObj = jQuery( this ).next( '.more-text' );
					moreTextObj.animate({ opacity: 'toggle', height: 'toggle' }, 300).css( 'display', 'block' );
					moreTextObj.toggleClass( 'open' ).toggleClass( 'closed' );
					if ( moreTextObj.hasClass( 'open') ) {
					} // End IF Statement
					if ( moreTextObj.hasClass( 'closed') ) {
					} // End IF Statement
					return false;
			toggleObj.find( 'input[name="title_closed"]').remove();
			toggleObj.find( 'input[name="title_open"]').remove();
			toggleObj.find( 'h4.toggle-trigger a').click( function () {
				toggleObj.find( '.toggle-content').animate({ opacity: 'toggle', height: 'toggle' }, 300);
				toggleObj.toggleClass( 'open' ).toggleClass( 'closed' );
				if ( toggleObj.hasClass( 'open') ) {
				} // End IF Statement
				if ( toggleObj.hasClass( 'closed') ) {
				} // End IF Statement
				return false;

	} // End IF Statement
}); // jQuery()