<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">

<!-- Components -->
<script defer type="module" src="https://fortifyapp.com/external/webcomponent/build/peculiar.esm.js"></script>
<script defer nomodule src="https://fortifyapp.com/external/webcomponent/build/peculiar.js"></script>
<link rel="stylesheet" href="https://fortifyapp.com/external/webcomponent/build/peculiar.css">

<style>
  body {
    height: 100vh;
    background: #6D7D87;
  }

  section {
    max-width: 660px;
    width: calc(100% - 20px);
    margin: 20px auto;
  }
</style>

<section></section>

<script>
  var el = document.createElement('peculiar-fortify-enrollment');
  // el.language = 'ru';
  el.debug = true;
  el.filters = {
    // providerNameMatch: 'MacOS',
    // providerNameMatch: new RegExp(/MacOS/),
  };

  el.addEventListener('cancel', function() {
    alert('"cancel" callback');
  });
  
  el.addEventListener('close', function() {
    alert('"close" callback');
  });

  var parent = document.getElementsByTagName('section')[0];

  parent.insertBefore(el, parent.firstChild);
</script>
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.