Socket
Socket
Sign inDemoInstall

jquery-nearest

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jquery-nearest

jQuery plugin to find the elements in a page that are closest to (or furthest away from) a particular point or element, based on pixel dimensions


Version published
Weekly downloads
9.5K
increased by20.08%
Maintainers
1
Install size
1.20 MB
Created
Weekly downloads
 

Readme

Source

jQuery Nearest Element plugin

Full documentation is at http://gilmoreorless.github.io/jquery-nearest/

Demo: http://gilmoreorless.github.io/jquery-nearest/demo.html

Method signatures:

  • $.nearest({x, y}, selector) - find $(selector) closest to x/y point on screen
  • $(elem).nearest(selector) - find $(selector) closest to elem
  • $(elemSet).nearest({x, y}) - filter $(elemSet) and return closest to x/y point on screen

Reverse logic:

  • $.furthest()
  • $(elem).furthest()

Intersecting/touching:

  • $.touching()
  • $(elem).touching()

Keywords

FAQs

Last updated on 10 Nov 2015

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc