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

https://github.com/shaack/linkable-js

Make every HTML-Element linkable by just adding the class `linkable` and a `data-href` attribute
https://github.com/shaack/linkable-js

Last synced: over 1 year ago
JSON representation

Make every HTML-Element linkable by just adding the class `linkable` and a `data-href` attribute

Awesome Lists containing this project

README

          

# linkable-js

Make every HTML Element a link by setting its class to `linkable`.

## Example

```html


This will link to shaack.com

```
The div ist now clickable, has `cursor="pointer"` and links to
shaack.com.

## install

Use npm:
```
npm install -save linkable-js
```

Or just download this repository.

## use

Just include the script `linkable.js`.
```html

```
Now all elements with `class="linkable"` are links to their
`data-href` attribute.