
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-tooltip
Advanced tools
a mobile-friendly tooltip.
Features:
margin
to position tooltipnpm install --save-dev ceri-tooltip
window.customElements.define("ceri-tooltip", require("ceri-tooltip"))
<!-- as sibling (preferred) -->
<button>hover or touch-hold</button>
<ceri-tooltip>Information</ceri-tooltip>
<!-- as child -->
<button>hover or touch-hold
<ceri-tooltip>Information</ceri-tooltip>
</button>
For examples see dev/
.
Name | type | default | description |
---|---|---|---|
offset | Number | 0 | offset to the parent |
anchor | String | isMobile ? "wnse" : "senw" | direction of opening, viewport dependent. "s" forces to open down. "sn" would try to open down, then up. |
delay-touch | Number | 200 | duration to wait after touchstart |
delay-hover | Number | 400 | duration to wait after hover |
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 tooltip 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>hover or touch-hold</button>
<ceri-tooltip class=materialize>Information</ceri-tooltip>
# application wide
CETT = require("ceri-tooltip")
CETT.prototype.enter = (o) -> # your new enter animation
CETT.prototype.leave = (o) -> # your new leave animation
window.customElements.define("ceri-tooltip", CETT)
# single instance
# get a ref to your instance of ceri-tooltip somehow
# then overwrite the animations directly
ceTT.enter = (o) -> # your new enter animation
ceTT.leave = (o) -> # your new leave animation
Clone repository.
npm install
npm run dev
Browse to http://localhost:8080/
.
Copyright (c) 2016 Paul Pflugradt Licensed under the MIT license.
FAQs
a mobile-friendly tooltip
We found that ceri-tooltip 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.