https://github.com/anduin2017/jquery-anything-clickable
A jQuery plugin which makes anything clickable easily.
https://github.com/anduin2017/jquery-anything-clickable
Last synced: about 1 year ago
JSON representation
A jQuery plugin which makes anything clickable easily.
- Host: GitHub
- URL: https://github.com/anduin2017/jquery-anything-clickable
- Owner: Anduin2017
- License: mit
- Created: 2018-10-30T08:06:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-01-02T17:44:15.000Z (over 1 year ago)
- Last Synced: 2025-04-10T12:26:14.085Z (about 1 year ago)
- Language: JavaScript
- Size: 616 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jquery-anything-clickable
A jQuery plugin which makes anything clickable easily.
[](https://www.npmjs.com/package/jquery-anything-clickable)
[](https://gitlab.aiursoft.cn/anduin/jquery-anything-clickable/-/commits/master?ref_type=heads)
## How to install
```bash
npm install jquery-anything-clickable
```
And add your reference:
```html
```
Or in es6
```js
import { Clickable } from 'jquery-anything-clickable';
```
## How to use
Create an element.
```html
```
And change it like this.
```html
```
Init it:
```javascript
new Clickable('data-href');
```
And when it starts, just click it!
You can even add `data-href` to
```html
...
And anything!
```