A common widget for all LibreTexts applications to use to easily navigate users to the LibreOne Launchpad page
The minified script is hosted on the LibreTexts CDN:
https://cdn.libretexts.net/libreone-launchpad-widget.min.js
- Create a div element in the desired location with the id "widget-parent"
- Import the widget script from the CDN. Make sure to add the "defer" attribute to the script tag, as we need to wait for the DOM content to load in order to atttach to the "widget-parent" element.
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<script src="https://cdn.libretexts.net/libreone-launchpad-widget.min.js" type="text/javascript" defer></script>
</head>
<body>
<div id="widget-parent">
</div>
</body>
</html>