Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
org.webjars.npm:jrcarousel
Advanced tools
jQuery Responsive Carousel - jRCarousel by Vinayak Rangnathrao Jadhav
######jRCarousel is a jQuery plugin for responsive carousel with modern effects and multiple options.
<!-- add jQuery if not already present in your project -->
<script type="text/javascript"
src='https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js'></script>
<!-- add jRCarousel plugin -->
<script type="text/javascript"
src="https://raw.githubusercontent.com/vinayakjadhav/jRCarousel/master/dist/jRCarousel.min.js">
</script>
#####Setup images source
var slides = [
{src: 'http://lorempixel.com//1366/768'},
{src: 'http://lorempixel.com//1366/761'},
{src: 'http://lorempixel.com//1366/762'},
{src: 'http://lorempixel.com//1366/763'},
{src: 'http://lorempixel.com//1366/764'},
{src: 'http://lorempixel.com//1366/765'},
{src: 'http://lorempixel.com//1366/766'}
];
#####Minimal configuration with defaults
$('.jRCarouselGallery').jRCarousel({
slides: slides
});
#####Configuring all available options
$('.jRCarouselGallery').jRCarousel({
width: 800, /* largest allowed width */
height: 356, /* largest allowed height */
slides: slides, /* array of images source or gets slides by 'slide' class */
slideLayout : 'contain', /* "contain"-fit as per to aspect ratio | "fill"-stretches to fill | "cover"-overflows but maintains ratio */
animation: 'scroll', /* slide | scroll | fade | zoomInSlide | zoomInScroll */
animationSpeed: 400, /* animation speed in milliseconds */
animationInterval: 4000, /* Interval between transitions or per slide show time in milliseconds */
autoplay: true, /* start playing Carousel continuously, pauses when slide is hovered */
onSlideShow: show, /* callback when Slide show event occurs */
navigation: 'circles' /* circles | squares */
});
#####Images source provided in javascript
<div class="jRCarouselGallery"></div>
#####Images source provided in template by adding class slide
<div class="jRCarouselGallery">
<img class="slide" src="http://lorempixel.com//800/351" />
<img class="slide" src="http://lorempixel.com//800/352" />
<img class="slide" src="http://lorempixel.com//800/353" />
<img class="slide" src="http://lorempixel.com//800/354" />
<img class="slide" src="http://lorempixel.com//800/355" />
</div>
#####showSlide(slideIndex) : shows the slide specified by the slideIndex by running animation, the slideIndex starts from 0.
#####showPreviousSlide() : shows the previous slide from current slide by running animation
#####showNextSlide() : shows the slide specified by the slideIndex by running animation
#####getSlideByIndex(slideIndex) : returns the slide's jquery object specified by the slideIndex
#####getCurrentSlide() : returns the current slide's jquery object
var myJRCarousel = $('.jRCarouselGallery').jRCarousel({
slides: slides
});
myJRCarousel.showSlide(0);
myJRCarousel.showPreviousSlide();
myJRCarousel.howNextSlide();
var slide = myJRCarousel.getSlideByIndex(1);
var currentSlide = myJRCarousel.getCurrentSlide();
FAQs
WebJar for jrcarousel
We found that org.webjars.npm:jrcarousel demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.