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

bootstrip-alert

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrip-alert

Bootstrap alert without jQuery

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

bootstrip-alert

Twitter bootstrap alert without jQuery

All credit goes to the devs of bootstrap as this is heavily based on the alert plugin from it

Install

$ npm install --save bootstrip-alert

Tests

$ npm test

Example

var Alert = require('bootstrip-alert')
var $ = require('dom')
var ele = $('.alert')
var alert = new Alert(ele)

alert.on('close.bs.alert', function() {
  console.log('closing...')
})

alert.on('closed.bs.alert', function() {
  console.log('closed')
})

TODO

  • Allow for transition support
  • Implement using data api

License MIT

Licensed under the MIT License. For more info, see LICENSE

Keywords

FAQs

Package last updated on 06 Jul 2014

Did you know?

Socket

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.

Install

Related posts

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