Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
js-viewport-utils
Advanced tools
Changelog
2.0.4
Readme
Includes:
viewportUtils
npm install js-viewport-utils
And then:
var viewportUtils = require('js-viewport-utils');
bower install js-viewport-utils
<script src="path-to/js-viewport-utils.js"></script>
jQuery plugin:
<script src="path-to/js-viewport-utils.js"></script>
<script src="jquery.js"></script>
import {inViewport, inViewportBottom} from "js-viewport-utils";
var foo = document.getElementById("foo");
viewportUtils.inViewport(foo, {sides: "left"});
Sides can be passed as unique string with spaces
var options = {sides: "top right left bottom"}
###Use another element as viewport
var bar = document.getElementById("bar");
viewportUtils.inViewport(elem, {container: bar});
###Custom thresholds
viewportUtils.inViewport(elem, {top: 12, right: 12});
For more options, see Settings section below.
viewportUtils.inViewportLeft(elem);
viewportUtils.inViewportTop(elem);
These will check for the matching side, with default settings
MIT © Tony Samperi
This library is free, open source, and GPL friendly. You can use it for commercial projects, open source projects, or really almost whatever you want.
Attribution is required by MIT, SIL OLF, and CC BY licenses. Downloaded files already contain embedded comments with sufficient attribution, so you shouldn't need to do anything additional when using these files normally.
Tony Samperi, tonysamperi.github.io
FAQs
A set of viewport utils
We found that js-viewport-utils demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).