Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yash-singh1/jquery-plugin-xclick
A jQuery plugin that triggers every x clicks
https://github.com/yash-singh1/jquery-plugin-xclick
click jquery jquery-plugin
Last synced: about 1 month ago
JSON representation
A jQuery plugin that triggers every x clicks
- Host: GitHub
- URL: https://github.com/yash-singh1/jquery-plugin-xclick
- Owner: Yash-Singh1
- License: mit
- Created: 2021-05-13T23:22:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-07T03:18:21.000Z (over 2 years ago)
- Last Synced: 2024-09-14T10:57:29.180Z (2 months ago)
- Topics: click, jquery, jquery-plugin
- Language: JavaScript
- Homepage:
- Size: 23.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `jquery-plugin-xclick`
`jquery-plugin-xclick` is a jQuery plugin that allows you to setup an onclick event handler that triggers every x times that the element is clicked. It is useful to detect triple clicks.
## Installation
```sh
npm install jquery-plugin-xclick
```## Usage
```js
$('button').xclick(5, () => {
alert('Clicked 5 times in a row!');
});
```