
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.
With some dumb js, you can pan or scroll into anything! Demo: http://jackterwilliger.com/tools-omnizoom/
Pan/Zoom into a video!
Pan/Zoom into an image!
Pan/Zoom into a container!
I'm using this to build annotation tools for computer vision datasets and to study the roll spatial context plays in perception. Use it for anything.
git clone https://github.com/jackft/omnizoom
or:
npm install --save omnizoom
then include some files in your HTML Put these two lines in your header
<link rel="stylesheet" href="omnizoom.css">
<script type="text/javascript" src="omnizoom.min.js"></script>
If you used git, they'll be in omnizoom/dist
If you used npm, they'll be in node_modules/omnizoom/dist
zoom
to any zoomable elementszoom-container
to any container around a zoomable object (this prevents the zoom from overflowing its container.(new omnizoom.Zoomer()).addElem(<your-element>).addZoom()
Possible HTML elements:
<div class="zoom-container container" width="50%">
<video id="zoomable-video" class="zoom" preload="auto" controls src="your-video.mp4"></video>
</div>
<div class="zoom-container container" width="50%">
<img id="zoomable-img" class="zoom" src="your-img.JPG">
</div>
<div class="zoom-container">
<div id="zoomable-div" class="zoom">
...
</div>
</div>
How to make each element zoomable with the scroll wheel:
// add zoom functionality to the video
const zoomy1 = new omnizoom.Zoomer()
.addElem(document.getElementById("zoomable-video"))
.addZoom();
// add pan functionality to the img
const zoomy2 = new omnizoom.Zoomer()
.addElem(document.getElementById("zoomable-img"))
.addPan();
// add zoom and pan functionality to the div
const zoomy3 = new omnizoom.Zoomer()
.addElem(document.getElementById("zoomable-div"))
.addZoom()
.addPan();
FAQs
A stupid js class to zoom into any dom element (using the scroll wheel).
We found that omnizoom 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.