Pen Settings



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


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.


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.


                <!-- Puts Fundraise Up into test mode so that you can experiement with the donationComplete event. -->
window.fundraiseup_livemode = false;
<!-- End test mode code -->

<div class="container">
  <ul class="list">
    <li class="list-item">
      <span class="list-title">JavaScript events demo</span>
      <span class="list-description">Select the Donate button to launch Checkout. Fired JavaScript events will appear in the console. Remember to clear the console as you try different events.</span>
      <div class="loading fade-out"><i class="fa-solid fa-spinner-third fa-spin" style="--fa-animation-duration: 1s"></i> Preparing example...</div>
      <div class="example fade-in">
      <a href="#XTGWFZFR" style="display: none"></a> 




                /* Events to try:
1. checkoutOpen -> Fires whenever Checkout is opened

2. checkoutClose -> Fires whenever Checkout is closed, regardless of whether a conversion occurs.

3. donationComplete -> Fires at the point of conversion in Checkout.

FundraiseUp.on('checkoutOpen', function(details) {