
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.
ceri-dropdown
Advanced tools
a advanced dropdown/up/left/right menu.
Features:
npm install --save-dev ceri-dropdown
window.customElements.define("ceri-dropdown", require("ceri-dropdown"))
<!-- as sibling (preferred) -->
<button>Click to open dropdown</button>
<ceri-dropdown>
<li><span>Line 1</span></li>
</ceri-dropdown>
<!-- as child -->
<button>Click to open dropdown
<ceri-dropdown>
<li><span>Line 1</span></li>
</ceri-dropdown>
</button>
For examples see dev/
.
Name | type | default | description |
---|---|---|---|
gutter | Number | 0 | horizontal offset |
anchor | String | overlay ? "nw" : "sw" | point of the parent where it will be attached |
keep-open | Boolean | false | will be not close on click outside of dropdown |
constrain-width | Boolean | false | fix width to parent width |
overlay | Boolean | false | will overlay parent |
hover | Boolean | false | open on hover instead click |
open | Boolean | false | set to open / close |
on-body | Boolean | false | will be positioned on body instead of sibling/parent element. Detailed description |
Name | description |
---|---|
toggled(open:Boolean) | emitted before open and after close |
There are two ways of positioning. The default is in-place, the other possibility is on body
.
overflow:hidden
combined with a position:absolute|relative|fixed
element in the parent chain and the dropdown is overflowing.body
positioning can be problematic when the parent is moving relative to body
or when you depend on inheritance of styles.<button class=btn>Click me!</button>
<ceri-dropdown class=materialize constrain-width overlay>
<li><span>Content</span></li>
<li><span>Content2</span></li>
</ceri-dropdown>
# application wide
CEDD = require("ceri-dropdown")
CEDD.prototype.enter = (o) -> # your new enter animation
CEDD.prototype.leave = (o) -> # your new leave animation
window.customElements.define("ceri-dropdown", CEDD)
# single instance
# get a ref to your instance of ceri-dropdown somehow
# then overwrite the animations directly
ceDD.enter = (o) -> # your new enter animation
ceDD.leave = (o) -> # your new leave animation
Clone repository.
npm install
npm run dev
Browse to http://localhost:8080/
.
Copyright (c) 2017 Paul Pflugradt Licensed under the MIT license.
FAQs
a advanced dropdown menu
We found that ceri-dropdown 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.