Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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!');
});
```