PageSourceSearch

http://kvartira48.ru/bitrix/templates/kv48/js/min/jquery.squarecrop.js

js kvartira48.ru collected 2026-10-08 18:31:54 UTC 1,453 bytes, 1 lines download raw bytes

1!function(a){a.fn.imageCrop=function(b){function d(a){return!!a.complete&&("undefined"==typeof a.naturalWidth||0!==a.naturalWidth)}var c=a.extend({width:100,height:100,verticalOffset:2,circle:!1,wrapClass:"image-crop"},b);this.each(function(){var b=!1,e=a(this),f=document.createElement("div");a(f).css({width:c.width+"px",height:c.height+"px",overflow:"hidden",display:"inline-block"}).addClass(c.wrapClass),e.wrap(f),e.is("img")&&(e.on("load",function(){if(!b)if(b=!0,e.height()>=c.height){e.css("width",c.width+"px");var a=-Math.round((e.height()-c.height)/c.verticalOffset);e.css("marginTop",a+"px")}else{e.css("height",c.height+"px");var a=-Math.round((e.width()-c.width)/2);e.css("marginLeft",a+"px")}}),d(this)&&e.trigger("load"))})},a.fn.paddingCrop=function(b){function d(a){return!!a.complete&&("undefined"==typeof a.naturalWidth||0!==a.naturalWidth)}var c=a.extend({left:0,top:0,right:0,bottom:0,wrapClass:"padding-crop"},b);this.each(function(){var b=a(this),e=document.createElement("div"),f=!1;b.is("img")&&(b.on("load",function(){if(!f){f=!0;var d=b.width(),g=b.height(),h=this.naturalWidth/d,i=this.naturalHeight/g;console.log("load");var j=d-Math.round((c.left+c.right)/h),k=g-Math.round((c.top+c.bottom)/i);a(e).css({width:j+"px",height:k+"px",overflow:"hidden",display:"inline-block"}).addClass(c.wrapClass),b.wrap(e),b.css({marginLeft:-Math.round(c.left/h),marginTop:-Math.round(c.top/i)})}}),d(this)&&b.trigger("load"))})}}(jQuery);

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.