1.0.7 • Published 4 years ago

linkable-js v1.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

linkable-js

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

Example

<div class="linkable" data-href="https://shaack.com">
    This will link to shaack.com
</div>
<script src="src/linkable.js"></script>

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.

<script src="/node_modules/linkable-js/src/linkable.js"></script>

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

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago