Feature-rich Messaging Windows for Alerts, Dialogs, Lightboxes Library | jQuery.madWindow

JQuery.madWindow is a lightweight (8.46 KB) plugin that provides powerful message windows for alerts, dialogs, simplified boxes, and more. It includes a variety of behaviors to control the open, display, and close functions, and expandable features for changing appearance.

Content can be passed to simple message windows, or madWindow can be linked to an existing DIV element for simplified boxes, videos, or web forms.

Key Features:

  • Personalized title and content
  • 6 options for placement.
  • Auto refuses after a similar time limit for baking.
  • 6 built-in popup themes.
  • Content uploading is allowed from within the document.
  • Supports cookies. Perfect for easy-to-use pop-up or cookie consent dialog.

How to make use of it:

1. To get began, insert jQuery library and the madWindow plugin’s information into the doc.

<script src="/path/to/cdn/jquery.min.js"></script>
<script src="/path/to/dist/scripts/jQuery.madWindow.min.js"></script>
<link rel="stylesheet" href="/path/to/dist/styles/jQuery.madWindow.min.css" />

2. Create a primary dialog field that shows in the midst of the display screen.

$(window).madWindow("open",{
  messageTitle: "Basic Dialog",
  messageContent: "Dialog Content"
});

3. Create an alert dialog field with an OK button that slides from the underside of the display screen.

$(window).madWindow("open",{
  messageTitle: "Basic Dialog",
  messageContent: "Dialog Content",
  messageButtonShow: true,
  behavior: "bottomCenter"
});

4. Create a toast message that can auto dismiss after 3 seconds.

$("#toast").on('click', function () {
  $(window).madWindow("open",{
    messageTitle: "Toast",
    messageContent: "Toast Message Here",
    theme: "alert",
    behavior: "topRight",
    closeTimeout: 10,
    width: 400
  });
});

5. Create a verify dialog and load content material from inline HTML.

<div id="confirm-content" class="mad-window" style="display: none">
  <div class="container">
    <div class="mad-window-title">Confirm Dialog.</div>
    <div class="mad-window-content">
      <p>Are You Sure?</p>
      <div class="mad-window-actionButton">OK</div>
      <div class="mad-window-cancelButton">Cancel</div>
    </div>
  </div>
</div>
$("#confirm-content").madWindow("open",{
  theme: "confirm",
  behavior: "bottomCenter"
});
$("#confirm-content .mad-window-actionButton").click(function () {
  $("confirm-content").madWindow("close");
});

6. Possible close button themes:

$(window).madWindow("open",{
  messageTitle: "Basic Dialog",
  messageContent: "Dialog Content",
  theme: "alert fat-close"
});

7. All default configuration choices and callback capabilities.

$(window).madWindow("open",{
  messageTitle: null,
  messageContent: null,
  messageButtonShow: false,
  messageButtonLabel: "Ok",
  theme: "default",
  behavior: "autoCenter",
  cookieName: "mad-cookie",
  expireDays: 0,
  width: 400,
  closePadding: 0,
  speed: 500,
  modal: false,
  modalClose: false,
  modalSpeed: 250,
  disableScroll: false,
  disableMethod: "auto",
  openDelay: 0,
  closeTimeout: 0,
  openCallback: function() {},
  closeCallback: function() {}
});

Feature-rich Modal/Dialog/Notification Library, jQuery.madWindow Plugin/Github


See Demo And Download

Official Website(BrianPMucha): Click Here

This superior jQuery/javascript plugin is developed by BrianPMucha. For extra advanced usage, please go to the official website.

Related Posts

Confetti-Falling-Animation-Effect-party

Confetti Falling Animation Effect In JavaScript | party.js

Party.js is a JavaScript library to brighten user site experience with visual effects! Celebrate success with dom confetti! The library is written in TypeScript and compiled into…

jquery-cookie-consent

Simple jQuery Cookie Consent Plugin

jquery.cookie-consent is a simple jQuery plugin to request consent to use cookies. An easy-to-use and highly customizable cookie consent bar that informs your visitors of the use…

Timepicker-Plugin-for-jQuery

Timepicker JavaScript Plugin for jQuery Inspired by Google Calendar

jquery.timepicker is a lightweight jQuery timer plugin inspired by Google Calendar. It supports both mouse and keyboard navigation and weighs 5.5KB minified and compact. Features: Highly customizable…

angular-ngx-carousel-slider

A Lightweight, Touchable, and Responsive Angular Universal Carousel Library

ngxCarousel is a lightweight, tactile, and responsive library for creating an angular carousel. No dependencies, no more hammer. Must Read: Angular Responsive Image Slider With Lightbox Popup…

vue-fullpage-modal

First Mobile Full-screen Modal Popup Library For Vue

Vue full-page modal is a responsive, mobile-compatible, screen-friendly pop-up library for Vue.js. Must Read: Modal Component Is Written in Vanilla JS | ensemble Modal How to make…

random-number-picker

Generate a Random Number Picker In Vanilla JavaScript

Random Number Picker is a Vanilla JS-based number picker that allows you to generate a random number within a specified range. Must Read: Generating Lottery Numbers Using…