
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
A pure Javascript popover component for high performance and feature-rich web applications
[![npm][npm-badge]][npm-badge-url] [npm-badge]: https://img.shields.io/npm/v/popgun.svg [npm-badge-url]: https://www.npmjs.com/package/popgun
Popgun is a pure Javascript popover component for high performance and feature-rich web applications!
Define a target element and set some inline attributes.
html
<!-- On hover, a text popover will appear. -->
<div popgun popgun-trigger="hover" popgun-text="Hello World"></div>
If there are a lot of popgun elements, rather than define inline attributes, register groups and schemas.
html
<!-- On hover, an html element popover will appear -->
<div popgun popgun-group="sampleGroup1"></div>
<!-- On click or hover, a text popover will appear. -->
<div popgun popgun-group="sampleGroup2"></div>
<!-- On click or hover, a text popover will appear with the overriden inline attribute. -->
<div popgun
popgun-group="sampleGroup2"
popgun-text="Inline attribute override group attributes, which override schema options.">
</div>
js
// A base schema
var schema = {
hoverDelay: 200,
trigger: 'hover'
}
popgun.registerSchema('sampleSchema', schema);
// A group based on schema
var group = {
schemaId: 'sampleSchema',
options: {
html: '<div>html element</div>'
}
}
// Another group based on schema that overrides one of the schema attribute
var anotherGroup = {
schemaId: 'sampleSchema',
options: {
text: 'This is sample text.',
trigger: 'click hover'
}
}
popgun.registerGroup('sampleGroup1', group);
popgun.registerGroup('sampleGroup2', anotherGroup);
Some Popgun attributes that you can define are:
Throughout the life cycle of the popover, Popgun will fire the following events onto the target:
Show States
Hide States
js
el.addEventListener('PopgunPreShow', function(e) {
console.log('PopgunPreShow');
}, false);
Run bin/iqb install
to install the npm and typings dependencies.
Run bin/iqb start
to run a demo application with Popgun.
FAQs
A pure Javascript popover component for high performance and feature-rich web applications
The npm package popgun receives a total of 17 weekly downloads. As such, popgun popularity was classified as not popular.
We found that popgun demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.