This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// leanModal v1.1 by Ray Stone - http://finelysliced.com.au | |
// Dual licensed under the MIT and GPL | |
// Tweaked by @simo to be responsive | |
!function(e){e.fn.extend({leanModal:function(t){function n(t){e("#lean_overlay").fadeOut(200),e(t).css({display:"none"})}var o={top:100,overlay:.5,closeButton:null},a=e("<div id='lean_overlay'></div>");return e("body").append(a),t=e.extend(o,t),this.each(function(){var o=t;e(this).click(function(t){var a=e(this).attr("href");e("#lean_overlay").click(function(){n(a)}),e(o.closeButton).click(function(){n(a)});e(a).outerHeight(),e(a).outerWidth();e("#lean_overlay").css({display:"block",opacity:0}),e("#lean_overlay").fadeTo(200,o.overlay),e(a).css({display:"block",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:0,"z-index":11e3}),e(a).fadeTo(200,1),t.preventDefault()})})}})}(jQuery); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
$.fn.extend({ | |
leanModal: function(options) { | |
var defaults = { | |
top: 100, | |
overlay: 0.5, | |
closeButton: null |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.