🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

JOLD Js-block is a small yet useful jQuery plugin that looks for the first link inside your block content and applies the link to the whole block to maximizes the click area.

anchor

Documentation

jQuery JOLD Js-block

Version 1.0.2

Summary

A jQuery plugin that places a onclick event causing a webpage top open on a block, looking for the first link in that block.

Author

Jurgen Oldenburg ( @staxxnl / jold.nl / [email protected] )

Usage

Include jquery.jold.js-block.min.js after calling jQuery in the footer. Alternatively, include in your plugins.js file if using HTML5 Boilerplate.

Installation

$ npm install jquery.jold.js-block 

Initialize the plugin

$('.js-block').joldJsblock(); 

This example opens adds an onclick event on the selected element, it looks for the closest link inside that block, skipping all '.js-block-skip' links.

Requirements

Tested with jQuery 1.12.1.

Changelog

Version 1.0.0

  • Initial commit.

You May Also Like