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.