
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@fengyuanchen/slider
Advanced tools
A simple jQuery slide plugin.
dist/
├── slider.js (9 KB)
└── slider.min.js (6 KB)
Three quick start options are available:
git clone https://github.com/fengyuanchen/slider.git
.npm install @fengyuanchen/slider
.Include files:
<script src="/path/to/jquery.js"></script><!-- jQuery is required -->
<script src="/path/to/slider.js"></script>
Initialize with $.fn.slider
method.
$('#slider').slider({
activeClass: 'slider-active', // for slide nav
autoPlay: true,
contentClass: 'slider-content',
disableClass: 'slider-disabled', // for slide "prev" and "next" button
duration: 5000,
effect: 'fade',
easing: 'swing', // support "swing" and "linear", powered by jQuery
navClass: 'slider-nav',
nextClass: 'slider-next',
prevClass: 'slider-prev',
speed: 1000,
trigger: 'click' // for slide nav
});
// Set slider options
$().slider(options);
// Set the global default options
$.fn.slider.setDefaults(options);
String
'slider-active'
An active state class for nav items.
Boolean
true
Auto play the slide after initialized.
String
'slider-content'
The content container.
String
'slider-disabled'
A disable state class for previous and next button.
Number
5000
The duration milliseconds of each slide item.
String
'fade'
, 'scrollX'
, 'scrollY'
'fade'
String
'swing'
, 'linear'
'swing'
Powered by jQuery.
String
'slider-nav'
The navigation container.
String
'slider-prev'
The previous button.
String
'slider-next'
The next button.
Number
1000
The speed of the animation.
String
'click'
The event for triggering slide.
Render the slider.
Start the slider.
$().slider({
autoPlay: false
}).slider('start');
stop the slider.
Enable the slider.
Disable the slider.
Destroy the slider.
If you have to use other plugin with the same namespace, just call the $.fn.slider.noConflict
method to revert to it.
<script src="other-plugin.js"></script>
<script src="slider.js"></script>
<script>
$.fn.slider.noConflict();
// Code that uses other plugin's "$().slider" can follow here.
</script>
As a jQuery plugin, you also need to see the jQuery Browser Support.
Maintained under the Semantic Versioning guidelines.
FAQs
A simple jQuery slide plugin.
We found that @fengyuanchen/slider 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.