From 3da2f274a5c637d7eb13ab1d6fdcbcf624a93114 Mon Sep 17 00:00:00 2001 From: Kyle Fox Date: Fri, 19 Nov 2010 12:07:22 -0700 Subject: [PATCH] Added an image ... *sigh*. Bumped version to 0.2.1 (will start doing patch version increments for minor fixes). --- README.md | 16 +++++++++++++++- close.png | Bin 0 -> 1910 bytes examples/index.html | 31 +++++++++++++++++++++++++++++-- jquery.modal.css | 11 +++++++++++ jquery.modal.js | 8 ++++++-- jquery.modal.min.js | 7 ++++--- jquery.modal.pack.js | 4 ++-- 7 files changed, 67 insertions(+), 10 deletions(-) create mode 100644 close.png diff --git a/README.md b/README.md index 59d8d92..d847005 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ By contrast, this plugin handles the two most common scenarios I run into * displaying an existing DOM element * loading a page with AJAX -and does so with as little HTML & CSS as possible -- and **no images.** +and does so with as little HTML & CSS as possible. # Installation @@ -78,6 +78,20 @@ However, when this occurs, you will probably want to at least re-center the moda $.fn.modal.resize() +# Options + +These are the supported options and their default values: + + $.fn.modal.defaults = { + overlay: "#000", // Overlay color + opacity: 0.75, // Overlay opacity + zIndex: 1, // Overlay z-index. + escapeClose: true, // Allows the user to close the modal by pressing `ESC` + clickClose: true, // Allows the user to close the modal by clicking the overlay + showClose: true // Shows a (X) icon/link in the top-right corner + modalClass: "modal", // CSS class added to the element being displayed in the modal. + }; + # Events The following events are triggered on the modal element at various points in the open/close cycle. Hopefully the names are self-explanatory. diff --git a/close.png b/close.png new file mode 100644 index 0000000000000000000000000000000000000000..4de4396d4a09677774f79289de2a09511baeea22 GIT binary patch literal 1910 zcmV-+2Z{KJP)z^Q>-8KIssI20AY({UO#lFGm;eBCjsO7iaR2~=Yybd* zy8r;x$N&H_>;M26yq<`~KL7v*>`6pHRCwBAWWWy?p_swJ!GY=X=g*8ke*9qk`ST}Z zdU`qw7Z(@fv}x0Rf#f+jIR5kU^8P2LK7aoF=BZPs zUOIK^)MsF*`~o`QH`D=t(JcoEAauk84FygG1qF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