1// leanModal v1.1 by Ray Stone - http://finelysliced.com.au 2// Dual licensed under the MIT and GPL 3 4(function($){$.fn.extend({leanModal:function(options){var defaults={top:100,overlay:0.5,closeButton:null};var overlay=$("<div id='lean_overlay'></div>");$("body").append(overlay);options=$.extend(defaults,options);return this.each(function(){var o=options;$(this).click(function(e){var modal_id=$(this).attr("href");$("#lean_overlay").click(function(){close_modal(modal_id)});$(o.closeButton).click(function(){close_modal(modal_id)});var modal_height=$(modal_id).outerHeight();var modal_width=$(modal_id).outerWidth(); 5$("#lean_overlay").css({"display":"block",opacity:0});$("#lean_overlay").fadeTo(200,o.overlay);$(modal_id).css({"display":"block","position":"fixed","opacity":0,"z-index":11000,"left":50+"%","margin-left":-(modal_width/2)+"px","top":o.top+"px"});$(modal_id).fadeTo(200,1);e.preventDefault()})});function close_modal(modal_id){$("#lean_overlay").fadeOut(200);$(modal_id).css({"display":"none"})}}})})(jQuery); 6 7$(function () { 8 9 // leanModal v1.1 by Ray Stone - http://finelysliced.com.au 10 // Dual licensed under the MIT and GPL 11 $.fn.extend({ 12 leanModal: function (options) { 13 var defaults = { 14 top: 50, 15 overlay: 0.6, 16 bg: '#000', 17 closeButton: ".modal_close" 18 }; 19 20 var overlay = $("<div id='lean_overlay'></div>"); 21 $("body").append(overlay); 22 options = $.extend(defaults, options); 23 return this.each(function () { 24 var o = options; 25 $(this).click(function (e) { 26 var modal_id = $(this).attr("href"); 27 28 $("#lean_overlay").click(function () { 29 close_modal(modal_id); 30 }); 31 32 $(o.closeButton).click(function () { 33 close_modal(modal_id); 34 }); 35 36 var modal_height = $(modal_id).outerHeight(); 37 var modal_width = $(modal_id).outerWidth(); 38 39 $('#lean_overlay').css({ 'display': 'block', opacity: 0, background: o.bg }); 40 $('#lean_overlay').fadeTo(200, o.overlay); 41 42 $(modal_id).css({ 43 'display': 'block', 44 'position': 'absolute', 45 'opacity': 0, 46 'z-index': 11000, 47 'left': 50 + '%', 48 'margin-left': -(modal_width / 2) + "px", 49 'top': o.top + "px" 50 }); 51 52 $(modal_id).fadeTo(200, 1); 53 e.preventDefault(); 54 }); 55 }); 56 57 function close_modal(modal_id) { 58 $("#lean_overlay").fadeOut(200); 59 $(modal_id).css({ 'display': 'none' }); 60 } 61 } 62 }); 63 64 $("a[rel*=leanModal]").leanModal(); 65 66});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.