npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

iao-alert

v1.0.8

Published

Custom jquery based alerts.

Downloads

15

Readme

iao alert

Most flexible Jquery alert plugin with maximum number of customizations available.

Meta Data

Plugin Name: iao alert Key: iao-alert Version: 1.0.8 Author: Prashant Kapoor Website: http://itsallonly.github.io/iao-alert Repo: https://github.com/Itsallonly/iao-alert Issues: https://github.com/Itsallonly/iao-alert/issues Files: iao-alert.jquery.js, iao-alert.css Dependency: Jquery

Use

Alert can be invoked in two ways: 1.$.iaoAlert({ msg: "This is demo iao alert message." }); 2.$.fn.iaoAlert({msg: "This is demo iao alert message."});

Customization

4 type of alerts can be made:

  • 'success' SYNTAX - $.iaoAlert({ msg: "This is demo iao alert message.", type: "success" });
  • 'error' SYNTAX - $.iaoAlert({ msg: "This is demo iao alert message.", type: "error" });
  • 'warning' SYNTAX - $.iaoAlert({ msg: "This is demo iao alert message.", type: "warning" });
  • 'notification' SYNTAX - $.iaoAlert({ msg: "This is demo iao alert message.", type: "notification" });

NOTE: The Default alert type is "notification"

2 modes of designs in iao alerts:

  • 'dark' SYNTAX - $.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark" });
  • 'light' SYNTAX - $.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "light" });

NOTE: The Default alert mode is "light"

Disable auto hide:

By default iao alert hide automatically after a few seconds to disable that use autoHide : false - SYNTAX - $.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark", autoHide: false });

Change alert display time:

By defalt iao alert display time is '3 seconds(3000 milliseconds)', it can be changed with 'alertTime' - SYNTAX - $.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark", autoHide: true, alertTime: "5000" });

Change alert fade out time:

By defalt iao alert fade out time is '500 milliseconds', it can be changed with 'fadeTime' - SYNTAX - $.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark", autoHide: true, alertTime: "5000", fadeTime: "1000" });

NOTE: If fadeTime is set to 0 then it fadeout effect will not be visible.

Remove Close button:

iao alert has close button in right to hide alert message on click, it can be disabled with 'closeButton: false'- SYNTAX - $.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark", autoHide: true, alertTime: "5000", fadeTime: "1000", closeButton: false });

Close alert on click:

iao alert can be closed when clicked on it using 'closeOnClick: true', by default it is set to false- SYNTAX - $.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark", autoHide: true, alertTime: "5000", fadeTime: "1000", closeButton: false, closeOnClick: true });

Fade alert message on hover:

It appears nice to have a hover effect, it can be used in iao alert with 'fadeOnHover: true'- SYNTAX - $.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark", autoHide: true, alertTime: "5000", fadeTime: "1000", closeButton: false, closeOnClick: true, fadeOnHover: true });

Positioning

BY default iao alert message display on the top right corner of screen, it can be shown in 4 positions on screen

  • 'top-right' SYNTAX - $.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark", autoHide: true, alertTime: "5000", fadeTime: "1000", closeButton: false, closeOnClick: true, fadeOnHover: true, position: "top-right" });
  • 'top-left' SYNTAX - $.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark", autoHide: true, alertTime: "5000", fadeTime: "1000", closeButton: false, closeOnClick: true, fadeOnHover: true, position: "top-left" });
  • 'bottom-right' SYNTAX - $.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark", autoHide: true, alertTime: "5000", fadeTime: "1000", closeButton: false, closeOnClick: true, fadeOnHover: true, position: "bottom-right" });
  • 'bottom-left' SYNTAX - $.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark", autoHide: true, alertTime: "5000", fadeTime: "1000", closeButton: false, closeOnClick: true, fadeOnHover: true, position: "bottom-left" });

Layering (z-index)

BY default iao alert message has the z-index value 999 i.e. standard to bring it to top, still if doesn't come on the top layer of screen custom z-index can be passed using zIndex SYNTAX - $.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark", autoHide: true, alertTime: "5000", fadeTime: "1000", closeButton: false, closeOnClick: true, fadeOnHover: true, position: "top-right", zIndex: "1000" });

Rounded Corners

BY default iao alert message has sharp corners, it can be made to have rounded corners by setting 'roundedCorners' to true SYNTAX - $.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark", autoHide: true, alertTime: "5000", fadeTime: "1000", closeButton: false, closeOnClick: true, fadeOnHover: true, position: "top-right", zIndex: "1000" });

Rounded Corners

BY default iao alert message don't use class attribute, a class can be added by setting 'alertClass' to any custom class SYNTAX - $.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark", autoHide: true, alertTime: "5000", fadeTime: "1000", closeButton: false, closeOnClick: true, fadeOnHover: true, position: "top-right", zIndex: "1000", alertClass: "alert-class" });