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.


                <!-- standard Form embed -->
<script src="//"></script>
<form id="mktoForm_1345"></form>
<script>MktoForms2.loadForm("//", "410-XOR-673", 1345);</script>
<!-- /standard Form embed -->




 * jQuery :: beforeIs/afterIs events
 * @author Sanford Whiteman
 * @version v1.0.0 2021-08-05
 * @copyright © 2021 Sanford Whiteman
 * @license Hippocratic 2.1: This license must appear with all reproductions of this software.
function installCustomIsHandlers(jQ) {
   let originalIs =; = function (initialSelector) {
      let selector = this.triggerHandler("", { selector: initialSelector}) || initialSelector;
      let is =, selector);
      let extendedIs = this.triggerHandler("", { selector: selector, was: is });

      if (typeof extendedIs == "boolean") {
         return extendedIs;
      } else {
         return is;

// enrich Marketo's jQuery with the new events

MktoForms2.whenReady(function (mktoForm) {
   // put the Checkbox fields you want to invert in this array
   let invertibleCheckboxNames = ["Unsubscribed"]; 

   mktoForm.onSubmit(function (mktoForm) {
      invertibleCheckboxNames.forEach(function (fieldName) {
         let fieldSelector = "input[type='checkbox'][name='" + fieldName + "']",
             fieldJq = mktoForm.getFormElem().find(fieldSelector);
         // flip the `is` result 
         fieldJq.on("", function (event, context) {
            if (context.selector == ":checked") {
               return !context.was;