SkillAgentSearch skills...

Dalert

DAlert Jquery Plugin - A simple dialog box plugin has the simple behaviour as the original Javascript alert. You can also replace the original alert() as you wish with just calling a function in the dalert.ReplaceAlert();

Install / Use

/learn @andrewdex/Dalert
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

DAlert 1.1.1

Join the chat at https://gitter.im/andrewdex/dalert

Dalert is a simple jQuery and jQuery UI plugin that easily creates a customizable alert (or confirm) window as a replacement for the native javascript alert and confirm methods. Dependencies : jQuery, jQuery UI

  • Homepage & Documentation: [http://andrewdex.github.io/dalert]

Simple usage

//Dalert Alert Dialog

dalert.alert("I am a little DAlert !"); 

//Dalert With Callback

//Start :: DAlert Alert Usage with a callback on close of the alert		
    dalert.alert("Hello, I am a DAlert!", "Title", function callbackMe(){
        dalert.alert("Me callback !");
    });
//End :: DAlert Alert Callback Usage

//Dalert Confirm Dialog

dalert.alert("Are you sure?", "Confirm Title" , function (result) {
  if (result) {
    dalert.alert("Clicked yes"); // If yes clicked 
  } else {
    dalert.alert("Clicked no");  // If no clicked
  }
});

//Dalert Replace Native Alert

dalert.ReplaceAlert();

//Dalert Replace Native Confirm

dalert.ReplaceConfirm();

For Contributors : Devlopers : Getting started

Download the latest release or clone the repo, git clone git://github.com/andrewdex/dalert.git.

GruntJS : Task for Minification of DAlert

If you have node installed, install GruntJS Globaly and cd into the dalert directory then use npm install

To generate the minified file, type grunt

View on GitHub
GitHub Stars9
CategoryDevelopment
Updated1y ago
Forks7

Languages

CSS

Security Score

55/100

Audited on Jan 29, 2025

No findings