Insurance Widget v0.0.1

Embeddable insurance quote widget for partner websites.

Quick Start

Add the script tag and custom element to your page:

<!-- Load the widget -->
<script src="https://insurancehub-widget.gotosoft.net/insurance-widget.iife.js"></script>

<!-- Place the widget (hidden by default) -->
<insurance-widget id="my-widget"></insurance-widget>

<!-- Open it from your own button -->
<button onclick="document.getElementById('my-widget').open()">
  Get a Quote
</button>

Attributes

AttributeValuesDescription
openpresent / absentShows the modal when present
variantmulti-step (default) | single-pageForm layout style

Methods

MethodDescription
.open()Opens the modal
.close()Closes the modal

Live Demo

Click the button below to try the widget: