JavaScript
Learning how to install Mighty Whitelabel in JavaScript
Installation
Step 1: Initialise the package in your HTML file:
<script src="https://unpkg.com/mighty-academy-widget@latest/dist/mightyIframeIntegration.js"></script><script src="https://unpkg.com/mighty-academy-widget@latest/dist/mightyIframeIntegration.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
mightyIframeIntegration.authorizePackage('dark');
});
</script>Step 2: Add to HTML - Use the mighty-widget or mighty-pagecomponent:
mighty-widget or mighty-pagecomponent:Option 1 - mighty-widget
Option 2 - mighty-page
Attributes
Demo
Last updated