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

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.

Awesome Lists containing this project

README

          

# jquery-anything-clickable

A jQuery plugin which makes anything clickable easily.

[![npm](https://img.shields.io/npm/v/jquery-anything-clickable.svg?style=flat)](https://www.npmjs.com/package/jquery-anything-clickable)
[![ManHours](https://manhours.aiursoft.cn/r/gitlab.aiursoft.cn/anduin/jquery-anything-clickable.svg)](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!
```