![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
bootstrap-lightbox-gallery
Advanced tools
A Bootstrap component to display a gallery of images in a lightbox.
Show images in your page
On click large versions of the images are displayed in a lightbox
npm install bootstrap-lightbox-gallery
Show the images in the page as figures with (optional hidden) caption.
<a href="https://via.placeholder.com/1024x768" data-gallery="gallery-1" class="d-block">
<figure>
<img src="https://via.placeholder.com/1024x768" class="img-fluid" alt="Lorem ipsum dolor sit amet"/>
<figcaption class="visually-hidden">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</figcaption>
</figure>
</a>
<a href="https://via.placeholder.com/768x1024" data-gallery="gallery-1" class="d-block">
<figure>
<img src="https://via.placeholder.com/768x1024" class="img-fluid" alt="Quick brown fox jumps">
<figcaption class="visually-hidden">
Quick brown fox jumps over the lazy dog. All their equipment and instruments are alive.
</figcaption>
</figure>
</a>
<!-- [...] -->
Create the LightboxGallery instance.
<!-- add `bootstrap-lightbox-gallery`, `cm-web-modules` and `bootstrap-show-modal` to your importmap (if no transpiler is used) -->
<script type="importmap">
{
"imports": {
"bootstrap-lightbox-gallery/": "./node_modules/bootstrap-lightbox-gallery/",
"cm-web-modules/": "./node_modules/cm-web-modules/",
"bootstrap-show-modal/": "./node_modules/bootstrap-show-modal/"
}
}
</script>
<!-- create the LightboxGallery -->
<!-- new LightboxGallery(context, props) -->
<script type="module">
import {LightboxGallery} from "bootstrap-lightbox-gallery/src/LightboxGallery.js"
new LightboxGallery(document.querySelectorAll("[data-gallery='gallery-1']"),
{
id: "gallery-45c11a", // set this, if you have multiple galleries on one page
title: "My Lightbox Gallery", // set the name, it will be displayed
backgroundTheme: "dark" // set to "light", if you want to display the images on light background
})
</script>
this.props = {
id: "lightboxGallery", // change this, if you have multiple galleries on one page
backgroundTheme: "dark" // set to "light", if you want to display the images on light background
}
new LightboxGallery(document.querySelectorAll("[data-gallery='gallery-1']"), {title: "My Gallery"})
Find more high quality modules from shaack.com on our projects page.
FAQs
A nice lightbox gallery component for Bootstrap 5
We found that bootstrap-lightbox-gallery demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.