Coder Social home page Coder Social logo

brianpmucha / jquery.madwindow Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 162 KB

This lightweight (8.532 KB) plugin provides robust messaging windows for alerts, dialogs, lightboxes and more. It includes an assortment of behaviors to control the open, display and close functionality, and extensible themes to change the appearance.

Home Page: https://brianpmucha.com/jQuery.madWindow

License: GNU General Public License v3.0

JavaScript 100.00%
jquery-plugin modal dialog messagebox lightbox pop-up alert

jquery.madwindow's Introduction

jQuery.madWindow

This lightweight (8.532 KB) plugin provides robust messaging windows for alerts, dialogs, lightboxes and more. It includes an assortment of behaviors to control the open, display and close functionality, and extensible themes to change the appearance.

The content can be passed for simple message windows, or madWindow can be bound to an existing DIV for complex lightboxes, videos, or web-forms.

Configuration Examples

/* Pass content using message options. */
$(window).madWindow("open",
{
	messageTitle: "Aenean nec turpis neque.",
	messageContent: "Aliquam a enim felis. Mauris eleifend ipsum vel felis suscipit et rhoncus turpis tristique."
});

/* Bind to An existing DIV for content. */
$("#myWindow_1").madWindow("open",
{
	theme: "default hanging-close",
	behavior: "autoCenter",
	cookieName: "mad-cookie_1",
	expireDays: 30,
	width: 600,
	closePadding: 15,
	modal: true,
	openDelay: 5
});

Options

Option Description
messageTitle: null The title text to display when not bound to an existing div.
messageContent: null The message text to display when not bound to an existing div.
messageButtonShow: false Whether to add a close button when not bound to an existing div.
messageButtonLabel: "Ok" The value of the close button when not bound to an existing div.
theme: "default" Premade packages to customize the look and feel of the window.
behavior: "autoCenter" Used to customize the open, display and close animations.
cookieName: "mad-cookie" The identifier used for the cookie used to record a dismissed window.
cookieDomain: null The domain that can access the cookie used to record a dismissed window.
expireDays: 0 The number of days that the dismissed window cookie persists.
width: 400 The maximum width of the notice.
closePadding: 0 Extra space left of the notice to accomodate a hanging closebox.
speed: 500 Number of miliseconds for the open and close animations.
modal: false Show a dark overlay under the notice and over the page.
modalClose: true Allow clicks on the background to close the notice.
modalSpeed: 250 Number of miliseconds for the modal overlay animation.
disableScroll: false Disable scrolling of the page under the notice.
disableMethod: "auto" The method used to disable scrolling.
openDelay: 0 Number of seconds to delay opening the notice.
closeTimeout: 0 Number of seconds until an open notice closes itself.
openCallback: function() {} A function to execute upon notice open.
closeCallback: function() {} A function to execute upon notice close.
hiddenCallback: function() {} A function to execute if the window has been hidden by the cookie.

jquery.madwindow's People

Contributors

brianpmucha avatar

Watchers

 avatar

jquery.madwindow's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.