๐Ÿš€ How to install

Script Loader

After jQuery loaded on your page, you will need to load the following script that comes in 2 environments depending on the progress of your project:

Pre-production

<script src="https://connect.preprod.comexposium-webservices.com/js/loader.min.js"></script>

Production

<script src="https://connect.prod.comexposium-webservices.com/js/loader.min.js"></script>

Prerequisites

jQuery

In order to use the ComexposiumConnect widget, You first need to load jQuery. We encourage third party applications to use at least jQuery 2.0, but we strongly recommend to use a more recent version (3.x).

As a security, if we don't detect jQuery or if the version is older than 2.0, we dynamically load jQuery 3.1.1 without taking hand on the dollar ($) Javascript var. It allows you to still use your version or your library. The new version is available in the var:

window.cxpm.jQuery
  • If no $ var exists in the page, we create it with the loaded version.
  • If $ is ok with the version, we copy it to window.cxpm.jQuery.

Once the loader.min.js script is loaded and authorized by the Comexposium Team, you can access to the global variables comexposiumCap and comexposiumConnect.

You can also check which version of the loader and SDK you work with:

cxpm.version.useraccount
// {loaderBuild: "201X.X.X", sdkBuild: "201X.X.X"}

Now, you just have to include the HTML Code in your page to load the widget.