![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
bootstrap-lightbox
Advanced tools
This is a plugin for Twitter Bootstrap that adds a lightbox that is based off the modal dialog
You have several options. You can clone the repository git clone git://github.com/jbutz/bootstrap-lightbox.git
, grab an archive, or use cdnjs.
Once you have the files include the CSS and JavaScript files in your page and then give the example code below a shot.
<a data-toggle="lightbox" href="#demoLightbox">Open Lightbox</a>
<div id="demoLightbox" class="lightbox hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class='lightbox-header'>
<button type="button" class="close" data-dismiss="lightbox" aria-hidden="true">×</button>
</div>
<div class='lightbox-content'>
<img src="image.png">
</div>
</div>
All you need to do is add data-toggle="lightbox"
and href="#lightbox"
or data-target="#lightbox"
to a link, and set the href
so it references the lightbox you want to display.
<a data-toggle="lightbox" href="#demoLightbox">Open Lightbox</a>
Open the lightbox with the id myLightbox
.
$('#myLightbox').lightbox(options)
Name | Type | Default | Description |
---|---|---|---|
backdrop | boolean | true | This adds a modal-backdrop element. |
keyboard | boolean | true | Pressing escape closes the lightbox. |
show | boolean | true | Shows the lightbox when initialized. Note: This only applies when using JavaScript to setup the lightbox. |
resizeToFit | boolean | true | This resizes the image to fit the window if the image is too large. |
FAQs
A simple lightbox plugin based on the bootstrap modal plugin.
The npm package bootstrap-lightbox receives a total of 0 weekly downloads. As such, bootstrap-lightbox popularity was classified as not popular.
We found that bootstrap-lightbox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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.