
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
hut-accordion
Advanced tools
HTML UI Toolkit accordion component
Check out the example!
An accordion where only one section can be opened at a time from multiple sections.
Use the following HTML and JS to create an accordion. When a header is clicked, it will be opened. If that section is currently opened, it will be closed.
<div id="my-accordion" class="hut-accordion">
<div class="accordion-section">
<header class="accordion-header">
<h3>Main</h3>
</header>
<section class="accordion-content">
<p>Some content for main section.</p>
</section>
</div>
<div class="accordion-section">
<header class="accordion-header">
<h3>Cats</h3>
</header>
<section class="accordion-content">
<p>Some cute kittens...</p>
</section>
</div>
<div id="dog-section" class="accordion-section">
<header class="accordion-header">
<h3>Dogs</h3>
</header>
<section class="accordion-content">
<p>Some cute puppies...</p>
</section>
</div>
</div>
var Accordion = require('hut-accordion');
var myAccordion = new Accordion(document.querySelector('#my-accordion'));
// Open the dogs section
myAccordion.select(document.querySelector('#dog-section'));
// Collapse the currently opened section
myAccordion.select(null);
new Accordion(element)
Creates a new accordion and attaches the event handlers. When created, no sections are selected.
#selected
Contains the currently selected .accordion-section
element, or null
if no
section is selected.
#toggle(element)
If the section indicated by element
is currently selected, it will be closed.
Otherwise the section will be selected.
#select([element])
Selects a section. This will collapse any previously selected section. element
must be a .accordion-section
element or else null
. If element
is null
or
undefined
, the currently selected section will be collapsed and no new section
will be selected.
Event: selected(element)
Triggered when the selected section changes. element
will be a
.accordion-section
element or else null
if no section is selected.
FAQs
HTML UI Toolkit accordion component
We found that hut-accordion demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.