
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.
element-visibility-watcher
Advanced tools
An Callback or Event is triggered when there is a change in visibility state of an Element.
Example fiddle
import ElementVisibilityWatcher from 'element-visibility-watcher'
// options are optional. By the default it will listen for elements inside the parent document
let observer = new ElementVisibilityWatcher(options)
let nodeToWatch = document.getElementById('thumbnail')
observer.watch(nodeToWatch, function(visible, data) {
console.log(data)
})
Check Intersection Observer API for available options
and data
values.
The library registers viewport event when it is loaded. Event listener can be added using on-viewport
like below
Example fiddle
import 'element-visibility-watcher'
const ractive = new Ractive({
el: "#body",
template: "#scroller",
data: {
list: dummyData
},
visibilityCheck: function(event) {
console.log(event.original.intersectionData, event.original.visible)
}
})
// in HTML:
<div on-viewport="@this.visibilityCheck(event)"></div>
Check Intersection Observer API for available data
values.
Note: The bundle contains Intersection Observer API polyfill. Please check Intersection Observer API & Polyfill limitations.
FAQs
Triggers an event when an element enters/leaves the screen
We found that element-visibility-watcher 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.