diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 1cded38d5..afc287da3 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -1,4 +1,4 @@ -# Contributors +# Contributors This is a non-exhaustive list of definitions and their creators. If you created a definition but are not listed then feel free to send a pull request on this file with your name and url. @@ -175,6 +175,7 @@ All definitions files include a header with the author and editors, so at some p * [jQuery.jNotify](http://jnotify.codeplex.com) (by [James Curran](https://github.com/jamescurran/)) * [jQuery.joyride](http://zurb.com/playground/jquery-joyride-feature-tour-plugin) (by [Vincent Bortone](https://github.com/vbortone)) * [jQuery.jSignature](https://github.com/willowsystems/jSignature) (by [Patrick Magee](https://github.com/pjmagee)) +* [jQuery.leanModal](http://leanmodal.finelysliced.com.au/)(by [tomato360](https://github.com/tomato360)) * [jQuery.notifyBar](http://www.whoop.ee/posts/2013-04-05-the-resurrection-of-jquery-notify-bar/) (by [Shunsuke Ohtani](https://github.com/zaneli)) * [jQuery.noty](http://needim.github.io/noty/) (by [Aaron King](https://github.com/kingdango/)) * [jQuery.payment](http://needim.github.io/noty/) (by [Eric J. Smith](https://github.com/ejsmith/)) @@ -244,7 +245,7 @@ All definitions files include a header with the author and editors, so at some p * [Marked](https://github.com/chjj/marked) (by [William Orr](https://github.com/worr)) * [MathJax](https://github.com/mathjax/MathJax) (by [Roland Zwaga](https://github.com/rolandzwaga)) * [mCustomScrollbar](https://github.com/malihu/malihu-custom-scrollbar-plugin) (by [Sarah Williams](https://github.com/flurg)) -* [Meteor](https://www.meteor.com) (by [Dave Allen](https://github.com/fullflavedave)) +* [Meteor](https://www.meteor.com) (by [Dave Allen](https://github.com/fullflavedave)) * [md5.js](http://labs.cybozu.co.jp/blog/mitsunari/2007/07/md5js_1.html) (by [MIZUNE Pine](https://github.com/pine613)) * [Microsoft Ajax](http://msdn.microsoft.com/en-us/library/ee341002(v=vs.100).aspx) (by [Patrick Magee](https://github.com/pjmagee)) * [Microsoft Live Connect](http://msdn.microsoft.com/en-us/library/live/hh243643.aspx) (by [John Vilk](https://github.com/jvilk)) diff --git a/jquery.leanModal/jquery.leanModal-tests.ts b/jquery.leanModal/jquery.leanModal-tests.ts new file mode 100755 index 000000000..fdcaee53e --- /dev/null +++ b/jquery.leanModal/jquery.leanModal-tests.ts @@ -0,0 +1,18 @@ +/// +/// + +class LeanModalOptions implements JQueryLeanModalOption { + top : number; + overlay : number; + closeButton: string; +} + +$.leanModal(); + +var leanModalOptions = new LeanModalOptions; + +leanModalOptions.top = 200; +leanModalOptions.overlay = 0.5; +leanModalOptions.closeButton = ".close_button"; + +$.leanModal(leanModalOptions); diff --git a/jquery.leanModal/jquery.leanModal.d.ts b/jquery.leanModal/jquery.leanModal.d.ts new file mode 100755 index 000000000..47c0e3537 --- /dev/null +++ b/jquery.leanModal/jquery.leanModal.d.ts @@ -0,0 +1,22 @@ +// Type definitions for leanModal.js 1.1 +// Project: http://leanmodal.finelysliced.com.au/ +// Definitions by: FinelySliced +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +interface JQueryLeanModalOption { + top? : number; + overlay? : number; + closeButton? : String; +} + +interface JQueryStatic { + leanModal(): JQuery; + leanModal(val : JQueryLeanModalOption): JQuery; +} + +interface JQuery { + leanModal(): JQuery; + leanModal(val : JQueryLeanModalOption): JQuery; +} \ No newline at end of file