jquery-bigTarget.js takes an anchor and expands it's clickzone by adding an onclick action to a parent element (defined in the clickzone plugin option) improving user accessibility.
Stable, no longer developed
// Simple Example
$(".big-target-link").bigTarget();
// Complete Example
$("#example2 .big-target-link").bigTarget({
clickZone: '#example2',
clickZoneClass: 'custom-big-target-click-zone',
clickZoneHoverClass: 'custom-big-target-click-zone-hover',
anchorClass: 'custom-big-target-anchor',
anchorHoverClass: 'custom-big-target-anchor-hover',
copyTitleToClickZone: false,
openRelExternalInNewWindow: false
});
clickZone: 'div:eq(0)'
- parent element selector. The element will be the big target clickzoneclickZoneClass
: 'big-target-click-zone' - class added to the clickzoneclickZoneHoverClass
: 'big-target-click-zone-hover' - class add on clickzone hoveranchorClass
: 'big-target-anchor' - class added the bigTarget anchoranchorHoverClass
: 'big-target-anchor-hover' - class added the bigTarget anchor on hovercopyTitleToClickZone
: true - copy the anchors title element to the clickzoneopenRelExternalInNewWindow
: true - open rel="external" in a new window / tab
See the index.html file for examples.
Created by Leevi Graham