Skip to content

LibreTexts/LibreOne-Launchpad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LibreOne Launchpad Widget

A common widget for all LibreTexts applications to use to easily navigate users to the LibreOne Launchpad page

Usage

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.

Example

<!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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published