
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
photoswipe-simplify
Advanced tools
PhotoSwipe.js simplify by the VanillaJS.
You can install it using npm:
npm install photoswipe photoswipe-simplify --save
Or just include the script in your page:
<script src="path/to/photoswipe.js" charset="utf-8"></script>
<script src="path/to/photoswipe-ui-default.js" charset="utf-8"></script>
<script src="path/to/photoswipe-simplify.js" charset="utf-8"></script>
And, include the PhotoSwipe style in your page:
<link rel="stylesheet" href="path/to/photoswipe.min.css">
<link rel="stylesheet" href="path/to/default-skin.min.css">
Included photoswipe-simplify.js in your project and initialize:
<script charset="utf-8">
photoswipeSimplify.init();
</script>
<!-- Wrapper element adding the [data-pswp] attribute. -->
<div data-pswp>
<!-- Detect image links from internal elements and generate PhotoSwipe objects. -->
<!-- If you want to display captions and authors, specify the data-caption and data-author attributes. -->
<a href="test/img01.jpg" target="_blank" data-caption="This is dummy caption. It has been placed here solely to demonstrate the look and feel of finished, typeset text." data-author="Photo by pixabay.com"><img src="test/img01-thumb.jpg" alt=""></a>
...
</div>
PhotoSwipe options can be used as they are. Please see this page for details. Specify the option as follows.
photoswipeSimplify.init({
history: false,
focus: false,
});
FAQs
PhotoSwipe.js simplify by the VanillaJS.
We found that photoswipe-simplify 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.