LightFace 0.97

LightFace is a clone of FaceBook's modal dialog. LightFace offers numerous options to customize each modal instance. LightFace also provides utility classes specially designed to work with AJAX requests, IFrames, and images.



Details

Author
David Walsh
Current version
0.97
GitHub
darkwing/LightFace
Downloads
72587
Category
Interface
Tags
Report
GitHub Issues

Releases


Dependencies

  • core/1.2.1: *
  • _self_/_current_: core/1.2.1: "*"

How to use

LightFace instances can be created at any time. There are no arguments other than the instance options.

  1. /* create LightFace instance */
  2. var modal = new LightFace({
  3. width: "auto",
  4. height: 400,
  5. draggable: true,
  6. title: "Hello from LightFace!",
  7. content: "<p>This is the LightFace content!</p>",
  8. buttons: [
  9. { title: "Close", event: function() { this.close(); }, color: "blue" }
  10. ],
  11. resetOnScroll: true
  12. });
  13. /* open when link is clicked */
  14. document.id("launchModal").addEvent("click", function(e){
  15. e.stop();
  16. modal.open();
  17. });

LightFace works great with static content, IFrames, AJAX Requests, tooltips, and images. LightFace also resizes and repositions when the window is resized or scrolled. Tested in IE7+, FF, Safari, Opera, Chrome, and iPad.

For specific usage and options, please read the documentation or visit http://davidwalsh.name/js/lightface


Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus