Skip to main content

Initialization

Initialize Wave.js with your public client_id.
client.js
const wave = Wave("your_client_id")

Mount offers

Include the Wave.js script on your page by adding it to the head of your HTML file. Next, create an empty DOM node (container) to use for mounting.
index.html
<head>
    <script src="https://js.wavebybemobi.com/v1/"></script>
</head>
<body>
    <div id="offers-list">
    <!-- Script will insert the offers screen here -->
    </div>
</body>
You can start the offers list screen adding the following code:
client.js
// Initialize list offers
const offers = await wave.initEmbeddedOffersList();

// Mount offers list
offers.mount('#offers-list');
Screen renders in an iframe that securely exchange information with Wave over an HTTPS connection. Also, you can choose to mount: .initEmbeddedProfile() or .initEmbeddedOfferDetail()