Skip to content

klojniewski/blockclicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

#blockClicker

###Benefits

  • You can allow (mobile) users to click on whole block element.
  • Bigger clickable area.
  • No need to change HTML.

##Installation

###Step 1: Link plugin file

<script src="/js/jquery.blockclicker.js"></script>

###Step 2: Call the blockClicker

Call .blockClicker() on block element. Note that the call must be made inside of a $(document).ready() call, or the plugin will not work!

$(document).ready(function(){
  $('.feed-items li').blockClicker({
    link: 'h4 a'
  });
});

##Configuration options

link Selector of link inside block element

default: 'h4 a'
options: jQuery selector

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published