
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@squarespace/layout-slideshow
Advanced tools
A module to lay out a group of elements in a slideshow.
NOTICE: This code is licensed to you pursuant to Squarespace’s Developer Terms of Use. See license section below.
npm install --save @squarespace/layout-slideshow;
const Slideshow = require('@squarespace/layout-slideshow');
const slideshow = new Slideshow(rootNode, {
config
});
If you prefer to handle transpiling and polyfilling on your own, you can import ES6 from Slideshow:
import Slideshow from '@squarespace/layout-slideshow/src';
Alternately, Slideshow specifies a module
property in package.json
that points to the uncompiled src/index.js
, so you may be able to simply import @squarespace/layout-slideshow
if you're using one of the following bundlers:
Params
HTMLElement
- Node containing slideshowObject
- Config objectString
- Selector of child elementNumber
- Duration of transitionBoolean
- Whether or not to loop back to the beginning/endObject
- Object with controls selectorString
- Selector for previous controlString
- Selector for next controlString
- Selector for individual indicatorObject
- Object with autoplay configBoolean
- Whether autoplay is enabledNumber
- Duration of each autoplay slideFunction
- Callback to execute after mousing outFunction
- ImageLoader configLayout the slideshow and bind event listeners.
Clear timeouts, unbind event listeners, stop autoplay
Portions Copyright © 2016 Squarespace, Inc. This code is licensed to you pursuant to Squarespace’s Developer Terms of Use, available at http://developers.squarespace.com/developer-terms-of-use (the “Developer Terms”). You may only use this code on websites hosted by Squarespace, and in compliance with the Developer Terms. TO THE FULLEST EXTENT PERMITTED BY LAW, SQUARESPACE PROVIDES ITS CODE TO YOU ON AN “AS IS” BASIS WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED.
FAQs
A module to layout items in a slideshow
We found that @squarespace/layout-slideshow demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.