Llewellyn van der Merwe
d9f5a1aebc
- Add modal implementation with automatic detection for four specific libraries. - Introduce inline tooltips with library compatibility. - Implement a default stand-alone fallback for environments without supported libraries.
15 lines
442 B
JavaScript
15 lines
442 B
JavaScript
import { Loader } from "./core/Loader.js";
|
|
|
|
/**
|
|
* Entry point to load Bible references.
|
|
* Attaches event listener to DOMContentLoaded to find elements with class 'getBible'
|
|
* and initializes Loader for each element.
|
|
*/
|
|
document.addEventListener('DOMContentLoaded', (event) => {
|
|
const elements = document.querySelectorAll('.getBible');
|
|
elements.forEach(element => {
|
|
const loader = new Loader();
|
|
loader.load(element);
|
|
});
|
|
});
|