Skip to content
Newer
Older
100644 25 lines (14 sloc) 1.07 KB
11cbf39 Changed the spacing to look a little better in github.
Paul Elliott authored Aug 17, 2009
1 The jQuery Curtain plugin allows you to place a darkened curtain over any DOM element, optionally with a graphic centered on the curtain. This can be used to disabled a portion of the page for any reason, such as to indicate an ajax call in progress.
367aeb9 Added a README
Paul Elliott authored Aug 17, 2009
2
3 Source on Github:
4 http://github.com/paulelliott/jquery-curtain/tree/master
5
6 Demo:
7 http://blog.codingfrontier.com/?page_id=157
8
11cbf39 Changed the spacing to look a little better in github.
Paul Elliott authored Aug 18, 2009
9 It works by appending a div to the end of the body tag. The div's absolute position and size are calculated on the fly to match the parent element. This means that the curtain can be applied to any element type, regardless of its position.
367aeb9 Added a README
Paul Elliott authored Aug 18, 2009
10
11 Usage:
12
dd99391 Removed some stray html from the README.
Paul Elliott authored Aug 17, 2009
13 To apply the curtain: $(".elements_to_curtain").curtain(options);
367aeb9 Added a README
Paul Elliott authored Aug 18, 2009
14
15 To remove the curtain: $(".elements_to_curtain").curtain("remove");
16
17 To get the curtain: $(".elements_to_curtain").curtain("get");
18
1ed5010 Changed curtainSettings to curtainSetup
Paul Elliott authored Aug 19, 2009
19 To change the default options: $.curtainSetup(options);
67646d6 Added $.curtainSettings(options); that allows you to override the def…
Paul Elliott authored Aug 19, 2009
20
367aeb9 Added a README
Paul Elliott authored Aug 18, 2009
21 Options (all are optional):
22
23 loader_image - The location of the image you would like to overlay on the curtain. If an empty string is used, no image will appear.
24 default: '/images/ajax-loader.gif'
Something went wrong with that request. Please try again.