
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
jquery-shinybox
Advanced tools
A touchable jQuery lightbox.
shinybox is a jQuery "lightbox" plugin for desktop, mobile and tablet.
Chrome, Safari, Firefox, Opera, IE8+, IOS4+, Android, windows phone.
Include jquery and the shinybox script in your head tags or right before your body closing tag.
<script src="lib/jquery-1.9.0.js"></script>
<script src="source/jquery.shinybox.js"></script>
Include the shinybox CSS style in your head tags.
<link rel="stylesheet" href="source/shinybox.css">
Use a specific class for your links and use the title attribute as caption.
<a href="big/image.jpg" class="shinybox" title="My Caption">
Bind the shinybox behaviour on every link with the "shinybox" class.
$(".shinybox").shinybox();
id: 'shinybox-overlay', // id of the overlay element
useCSS: true, // false will force the use of jQuery for animations
hideCloseButtonOnMobile: false, // hide close button on mobile, you can always use swipe up or down to close the shinybox on mobile
loopAtEnd: false, // Play images in loop in either directions
noTitleCaptionBox: false, // Set true if you don't have title caption box
showNavigationsOnMobile: false, // true to always show navigation icon on mobile
sort: null, // a sorting function to sort the dom elements before showing in shinybox
videoMaxWidth: 1140, // videos max width
autoplayVideos: false, // true will autoplay Youtube and Vimeo videos
vimeoColor: 'CCCCCC', // vimeo color
queryStringData: {}, // plain object with custom query string arguments to pass/override for video URLs
beforeOpen: function(){}, // called before opening
afterClose: function(){}, // called after closing
afterMedia: function(element, index){}, // called after loading media
afterSlide: function(element, index){} // called after sliding to image at the index
Photos by Daniele Zedda Based on Swipebox
FAQs
Shinybox ================================
The npm package jquery-shinybox receives a total of 1,875 weekly downloads. As such, jquery-shinybox popularity was classified as popular.
We found that jquery-shinybox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 52 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.