Install our app by simply adding one of the following CDN to your app
index.html
<script src="https://cdn.jsdelivr.net/npm/zuma-ui@latest"></script>
// or
<script src="unpkg.com/zuma@latest"></script>
We will need your consent to inject our app into your page
index.html
<div id="zuma"></div>
Our app is now available for access on window.Zuma as function. We can
now safely call the function and pass our recently created launcher in
index.html
script.js
window.addEventListener("load", () => {
const launcher = document.getElementById("zuma");
try {
const launcher = document.getElementById("zuma")
const engine = Zuma(launcher);
engine.startApp();
} catch (e) {
// Handle error
}
});
You can now refresh your page. If all things go well, you should see a floating button at the bottom-left corner of your page. Viola!
Our app is easily customizable to suit your desire. Proceed to advanced section to dig deeper.