PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.7.0.7
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.7.0.7
1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 1.7.0.9 All 211 releases
charitable / assets / js / libraries / leanModal.min.js

leanModal.min.js in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.7.0.7, at assets/js/libraries/leanModal.min.js

2 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*! 1.6.61 2022-07-13 16:23 */
2 !function(l,a){o=!1;var i,n,r,o,t=function(e,t){o||((r=l.extend({verticalOffset:100,overlay:.5,closeButton:null},t)).verticalOffset=parseInt(r.verticalOffset),(i=l("body")).append(l('<div id="lean_overlay"></div>')),n=l("#lean_overlay"),e.on("click",function(e){var t=s.get_target(l(this)),o=l(t);s.open(o,e),o.on("click",r.closeButton,function(e){s.close(o),e.preventDefault()}),n.on("click",function(){s.close(o)}),l(a).on("keyup",function(e){return 27===e.keyCode&&s.close(o)}),e.preventDefault()}),o=!0)},s={init:function(e){t(this,e)},open:function(e){function t(){s.resize(e)}n.css({display:"block",opacity:0}).fadeTo(200,r.overlay),e.css({display:"block",position:"fixed",opacity:0,"z-index":1e5}).fadeTo(200,1),t(),e.resize(t),l(window).resize(t),e.trigger("focus"),i.trigger("charitable:modal:open")},get_target:function(e){var t="#"+e.data("trigger-modal");return t=1===t.length?e.attr("href"):t},close:function(e){n.fadeOut(200),e.hide(),s.reset(e),i.trigger("charitable:modal:close",e)},reset:function(e){e.css({bottom:"auto",overflowY:"auto"})},resize:function(e){var t=l(window).height(),o=e.outerWidth(),a=e.outerHeight();available_offset=t-a,modal_is_too_tall=(a=a+2*r.verticalOffset,t<a),modal_css={left:"50%","margin-left":-o/2+"px",top:r.verticalOffset+"px"},modal_is_too_tall&&(0<available_offset&&(t=available_offset/2,modal_css.top=t+"px",modal_css.bottom=t+"px"),available_offset<=0&&(modal_css.top="10px",modal_css.bottom="10px",modal_css.overflowY="scroll")),e.css(modal_css),i.trigger("charitable:modal:resize")}};l.fn.extend({leanModal:function(e){return s[e]?s[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void l.error("Method "+e+" does not exist on jQuery.leanModal"):s.init.apply(this,arguments)}}),l(a).ready(function(){l("[data-trigger-modal]").leanModal({closeButton:".modal-close"})})}(jQuery,document);