
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
way2web-click-limit
Advanced tools
With this package you can set a limit on how many times you can click on the element.
Installation
npm install way2web-click-limit
Basic Usage
var element = $('.js-limited-click:first');
var test = new ClickLimit(element).init();
You can set a data attribute click-max to the element, to set the click limit.
The default value is 1
, so you can click the element only one time.
This function will called when you click on the element.
A variable clicked
will be increased by 1
.
The property disabled
will be set on the element.
You can call this function to reset the clicks on the element, so you can click again on the element.
The variable clicked
will be set to 0
.
The property disabled
will be removed from the element.
This function returns how many times you have clicked on the element.
This function returns how many times you can click on the element.
npm run lint
This will only lint your scripts.
npm test
This will run all the tests in the test folder with mocha.
FAQs
Disable the element on a click limit.
We found that way2web-click-limit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.