Skip to main content

Installation

Script Loading

To load the required packages for the BAM components, add this script tag to your HTML document. It will pull the required packages to get you up and running. You want to include the CSS as well to support minimum heights on dynamic elements.

<script defer type="module" src="https://bam-static.actionnetwork.com/0.0.2/bam-scripts/bam-scripts.esm.js"></script>
<link rel="stylesheet" href="https://bam-static.actionnetwork.com/0.0.2/bam-scripts/bam-scripts.css" />

Or with our alternate domain

<script defer type="module" src="https://b-static.bet-links.com/0.0.2/bam-scripts/bam-scripts.esm.js"></script>
<link rel="stylesheet" href="https://b-static.bet-links.com/0.0.2/bam-scripts/bam-scripts.css" />

Non-deferred/Non-module Loading

Some frameworks or site configurations don't allow for deferred/module loading of the BAM Javascript file.

In these cases, you can incorporate our bundle.js on your site/page:

<script src="https://bam-static.actionnetwork.com/0.0.2/bundle.js"></script>
<link rel="stylesheet" href="https://bam-static.actionnetwork.com/0.0.2/bam-scripts/bam-scripts.css" />