Skip to content
This repository has been archived by the owner on Feb 25, 2018. It is now read-only.

Latest commit

 

History

History
24 lines (17 loc) · 461 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 461 Bytes

A simple tripleclick event for jQuery.

Click on an element three times within 1s to trigger the event.

Usage:

$("#element").bind("tripleclick", function()
{
    // Actions
});

// or

$("#element").on("tripleclick", function()
{
    // Actions
});

You can also override the 1s time limit by passing in a new threshold,

$("#element").on("tripleclick", { threshold: 2000 }, function()
{
    // Actions
});