Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flash-message

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flash-message - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

12

jquery.flash.js

@@ -27,2 +27,5 @@ //

$(function() {
var defaultOptions = {
timeout: 5000
};
var flashTimeout;

@@ -37,2 +40,3 @@ var flashDiv = '<div id="flash" style="display:none;"> \

flash: function(content, options) {
options = options || defaultOptions;
var flash = $('#flash');

@@ -66,3 +70,5 @@

}
flashTimeout = window.setTimeout(fadeAway, 5000);
if(options.timeout) {
flashTimeout = window.setTimeout(fadeAway, options.timeout);
}
});

@@ -72,3 +78,5 @@

$('#flash').hide();
window.clearTimeout(flashTimeout);
if(flashTimeout) {
window.clearTimeout(flashTimeout);
}
});

@@ -75,0 +83,0 @@

2

package.json
{
"name": "flash-message",
"version": "2.0.0",
"version": "2.0.1",
"description": "A tiny plug-in to show flash messages at the top of the page that auto-hide.",

@@ -5,0 +5,0 @@ "main": "jquery.flash.js",

@@ -25,5 +25,2 @@ ## Flash Message Plugin

To install, just include this javascript file and the accompanying CSS file into your
HTML page. And that's it!
Oh and don't forget the 'close' image.
`npm install flash-message`
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc