Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@wezz/clickableboxmanager
Advanced tools
If you have a box in markup with multiple links in the text but want the whole block to be clickable this is the script for you.
If you have a box in markup with multiple links in the text but want the whole block to be clickable this is the script for you.
This script figures out which is the primary link in a box and makes the whole box clickable.
npm install @wezz/ClickableBoxManager
import ClickableBoxManager from "@wezz/clickableboxmanager";
// On document ready
new ClickableBoxManager();
By adding the attribute data-clickable-box
to a container it will make the whole container clickable if there is at least one link within the container.
<div data-clickable-box>
<p>Lorem ipsum dolor sit amet</p>
<a href="#">Primary link</a>
</div>
To enable more flexibility, it's possible to fill the attribute with classes that the script will use to indentify the primary link.
<div data-clickable-box="cta-primary">
<p>Lorem ipsum <a href="#">First link in content but secondary in importance</a> dolor sit amet</p>
<a href="#" class="cta-primary">Primary link</a>
</div>
There is suggested styling to be found in clickable-box.scss
Clone this repo
Run
npm install
To run the interactive demo, run
npm run demo
FAQs
If you have a box in markup with multiple links in the text but want the whole block to be clickable this is the script for you.
The npm package @wezz/clickableboxmanager receives a total of 0 weekly downloads. As such, @wezz/clickableboxmanager popularity was classified as not popular.
We found that @wezz/clickableboxmanager demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.