Gathering detailed insights and metrics for jquery-clickout
Gathering detailed insights and metrics for jquery-clickout
Gathering detailed insights and metrics for jquery-clickout
Gathering detailed insights and metrics for jquery-clickout
npm install jquery-clickout
Typescript
Module System
Node Version
NPM Version
66
Supply Chain
82.9
Quality
75
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
23,239
Last Day
1
Last Week
38
Last Month
203
Last Year
3,625
23 Stars
13 Commits
3 Forks
2 Watchers
2 Branches
1 Contributors
Updated on Nov 12, 2020
Minified
Minified + Gzipped
Latest Version
0.0.3
Package Id
jquery-clickout@0.0.3
Size
3.86 kB
NPM Version
3.10.3
Node Version
6.7.0
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-20.8%
38
Compared to previous week
Last Month
-30.2%
203
Compared to previous month
Last Year
69.9%
3,625
Compared to previous year
jQuery plugin for handle outside clicks. It doesn't stop event propagation nor prevents default events.
It extends the jQuery Events and adds a new custom event: clickout
.
You can use it normally with on
and off
methods:
1// Add a clickout listener 2$('button').on('clickout', function (e) { 3 console.log('click outside button') 4}) 5 6// Remove a clickout listener 7$('button').off('clickout')
The coolest feature is the multiple elements support:
1$('.js-button, .js-menu').on('clickout', function (e) { 2 console.log('click outside `js-button` and `js-menu`') 3 this.addClass('is-hidden') // now both $button and $menu have `is-hidden` class 4}) 5 6 7$button.add($menu).on('clickout', function () { 8 console.log('click outside `js-button` and `js-menu`') 9 this.addClass('is-hidden') // now both $button and $menu have `is-hidden` class 10})
npm install jquery-clickout --save
Or just copy jquery-clickout.min.js
from this repository, in the dist
folder.
Just use clickout
like a normal event. Very very easy:
1$('.my-element').on('clickout', function (e) { 2 console.log('Outside element click') 3 console.log(this) // jQuery instance of `.my-element` 4})
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
no SAST tool detected
Details
Reason
Found 0/13 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More