1(function( $ ){ 2 $.fn.llp_box_center = function() { 3 this.css({ 4 position:'fixed', 5 left: ($(window).width() - this.outerWidth())/2, 6 top: ($(window).height() - this.outerHeight())/2 7 }); 8 }; 9 $.fn.llp_box = function(options) { 10 11 var settings = $.extend({ 12 width : '400px' 13 }, options); 14 15 var _this = this; 16 var llp_box_c = ''; 17 llp_box_c += '<div style="display:none;" class="llp_box-overlay llp_box-overlay-fixed"></div>'; 18 llp_box_c += '<div style="display:none;" class="llp_box-wrap llp_box-desktop llp_box-type-inline llp_box-opened">'; 19 llp_box_c += '<div class="llp_box-skin" style="padding: 15px; width: auto; height: auto;">'; 20 llp_box_c += '<div class="llp_box-outer">'; 21 llp_box_c += '<div class="llp_box-inner">'; 22 llp_box_c += '</div>'; 23 llp_box_c += '</div>'; 24 llp_box_c += '<a href="javascript:void(0);" class="llp_box-item llp_box-close" title="Close"></a></div>'; 25 llp_box_c += '</div>'; 26 27 $('body').append(llp_box_c); 28 var llp_box_overlay = $('.llp_box-overlay'); 29 var llp_box_close = $('.llp_box-close'); 30 var llp_box_wrap = $('.llp_box-wrap'); 31 var llp_box_inner = $('.llp_box-inner'); 32 var cache_style = ''; 33 34 this.on('click',function(){ 35 if(_this.attr('href').indexOf('#') != -1 && _this.attr('href').length > 1){ 36 var llp_content_target = _this.attr('href').replace('#',''); 37 var llp_content = $('#'+llp_content_target); 38 llp_content.wrap('<div class="llp_placeholder"></div>'); 39 40 llp_content.appendTo(llp_box_inner); 41 cache_style = llp_box_inner.children().attr('style'); 42 llp_box_inner.children().removeAttr('style'); 43 llp_box_inner.css('max-width',settings.width); 44 $('.llp_placeholder').html(''); 45 llp_box_overlay.fadeIn(); 46 llp_box_wrap.fadeIn(); 47 llp_box_wrap.llp_box_center(); 48 $(window).resize(function(){ 49 llp_box_wrap.llp_box_center(); 50 }); 51 return false; 52 } 53 }); 54 55 llp_box_overlay.on('click',function(){ 56 llp_box_overlay.fadeOut(); 57 llp_box_wrap.fadeOut(function(){ 58 llp_box_inner.children().attr('style',cache_style).appendTo($('.llp_placeholder')); 59 llp_box_inner.html(''); 60 }); 61 return false; 62 }); 63 64 llp_box_close.on('click',function(){ 65 llp_box_overlay.fadeOut(); 66 llp_box_wrap.fadeOut(function(){ 67 llp_box_inner.children().attr('style',cache_style).appendTo($('.llp_placeholder')); 68 llp_box_inner.html(''); 69 }); 70 return false; 71 }); 72 }; 73})( jQuery ); 74/* 75 FILE ARCHIVED ON 06:56:28 Mar 29, 2018 AND RETRIEVED FROM THE 76 INTERNET ARCHIVE ON 19:08:44 Jun 18, 2019. 77 JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. 78 79 ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. 80 SECTION 108(a)(3)). 81*/ 82/* 83playback timings (ms): 84 LoadShardBlock: 40.982 (3) 85 esindex: 0.02 86 captures_list: 212.46 87 CDXLines.iter: 16.042 (3) 88 PetaboxLoader3.datanode: 62.012 (4) 89 exclusion.robots: 0.309 90 exclusion.robots.policy: 0.292 91 RedisCDXSource: 149.473 92 PetaboxLoader3.resolve: 27.908 93 load_resource: 59.005 94*/
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.