
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Note: this library is still under development stage and is being processed through heavy real-world battle testing. Full documentation will be released once this module is ready for alpha release.
npm install --save quickpopup
var QuickPopup = require('quickpopup');
var popup = QuickPopup(...)
QuickPopup([settings])
Generates and returns a new Popup instance for the provided settings.
settings
can be one of:
.innerHTML
)QuickPopup.version
The version of this release.
QuickPopup.hasOpen
Boolean indicator of whether or not any popup instance is currently open/being displayed.
QuickPopup.instances
Array containing all active popup instances.
QuickPopup.defaults
placement
- placement of popup relative to the window when open. Can be one of: 'center'
,'top'
,'bottom'
(default: 'center')open
- should the popup be opened immediatly after creation (default: false)forceOpen
- if popup.open()
is called when another popup is open, this setting will ensure that the other will be closed. If this is set to false and another popup is open then popup.open()
will do nothing (default: false)content
- the content element to place inside the popupanimation
- open animation speed in milliseconds (default: 300)contentPadding
- padding to apply inside the content wrapper (default: 0)overlayColor
- color to apply to the background overlay (default: 'rgba(0,0,0,0.88)')template
- custom element QuickDOM settings to apply to each element. Accepts a key:value pair object where key
is one of: popup
,overlay
,content
,close
close
- settings for the popup's close button:
show
- should the close button render visible (default: false)padding
- how far from the edge should the close button be placed (default: 20)inside
- should the close button be placed inside or outside the content boxsize
- width/height of close button in pixels (default: 22)triggers
- the triggers that will cause the popup to be automatically opened/closed
open
navigation
- when user goes back in browser history (default:false)visibility
- when page is not in focus i.e. switch tabs (default:false)exitIntent
- when user intends to exit the page (default:false)close
esc
- when user hits the 'esc' key on keyboard (default:true)popup.open()
Opens/reveals the popup element.
popup.close()
Closes/hides the popup element.
popup.destroy()
Removes the popup element from the DOM & destroys the popup instance.
The following events are emitted by a popup instance:
beforeopen(triggerName)
Emitted before opening animation begins.
triggerName
Method of opening the popup.
null
: when opened manually via the api."visibility"
: when opened via the visibility trigger"navigation"
: when opened via the navigation trigger"exitIntent"
: when opened via the exitIntent triggeropen(triggerName)
Emitted when opening animation begins.
finishopen(triggerName)
Emitted when opening animation ends and popup becomes fully visible.
beforeclose
Emitted before closing animation begins.
close
Emitted when closing animation begins.
finishclose
Emitted when closing animation ends and becomes fully invisible.
MIT © Daniel Kalen
FAQs
Fast & light modal popup creator providing rich configuration and styling
The npm package quickpopup receives a total of 1 weekly downloads. As such, quickpopup popularity was classified as not popular.
We found that quickpopup 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.