Version 1.0.6
A jQuery plugin that places a onclick event causing a webpage top open on a block, looking for the first link in that block.
Install the plugin with npm and include it in your build process, or directly include the files in the head of your page.
$ npm install jquery.jold.js-block
After installing the plugin with npm, you still need to include the downloaded files from node_modules into your workflow.
<!-- Include js from jsdelivr cdn -->
<script src="https://cdn.jsdelivr.net/npm/jquery.jold.js-block/jquery.jold.js-block.min.js"></script>
Load the plugin from jsdeliver CDN
// Add click event with the url from the first found <a> in the element
$('.js-block').joldJsblock();
This example adds an onclick event on the selected element, it looks for the closest (first) link inside that block, skipping all '.js-block-skip' links.
- jQuery > 1.12.1
- Add .npmignore file
- Ignore .git folder
- Update readme
- Cleanup gulp workflows
- Initial commit.
Jurgen Oldenburg ( @staxxnl / jold.nl / info@jold.nl )