PageSourceSearch

https://pondsrus.com.au/cdn/shop/t/6/assets/jquery.fakecrop.js?v=7534225825422011931777005748

js pondsrus.com.au collected 2026-10-04 04:04:48 UTC 3,333 bytes, 2 lines download raw bytes

1(function($){var methods={ratio:function(args){var item=args.item,settings=args.settings;return{w:item.width()/settings.wrapperWidth,h:item.height()/settings.wrapperHeight}},center:function(longVal,shortVal){return parseInt((longVal-shortVal)/2,10)},scaleToFill:function(args){var item=args.item,settings=args.settings,ratio=settings.ratio,width=item.width(),height=item.height(),offset={top:0,left:0};return ratio.h>ratio.w?(width=settings.wrapperWidth,height=height/ratio.w,settings.center&&(offset.top=(settings.wrapperHeight-height)/2)):(height=settings.wrapperHeight,width=width/ratio.h,settings.center&&(offset.left=(settings.wrapperWidth-width)/2)),settings.center&&(args.wrapper.css("position","relative"),item.css({position:"absolute",top:offset.top+"px",left:offset.left+"px"})),item.height(height).attr("height",height+"px").width(width).attr("width",width+"px")},scaleToFit:function(args){var item=args.item,settings=args.settings,ratio=settings.ratio,width=item.width(),height=item.height(),offset={top:0,left:0};return ratio.h>ratio.w?(height=settings.wrapperHeight,width=parseInt(item.width()*settings.wrapperHeight/item.height(),10),settings.center&&(offset.left=(settings.wrapperWidth-width)/2)):(height=parseInt(item.height()*settings.wrapperWidth/item.width(),10),width=settings.wrapperWidth,settings.center&&(offset.top=(settings.wrapperHeight-height)/2)),args.wrapper.css({width:(settings.squareWidth?settings.wrapperWidth:width)+"px",height:settings.wrapperHeight+"px"}),settings.center&&(args.wrapper.css("position","relative"),item.css({position:"absolute",top:offset.top+"px",left:offset.left+"px"})),item.height(height).attr("height",height+"px").width(width).attr("width",width+"px")},init:function(options){var settings=$.extend({wrapperSelector:null,wrapperW
1idth:100,wrapperHeight:100,autoGetWidth:!0,ratioWrapper:null,widthSelector:null,center:!0,fill:!0,initClass:"fc-init",doneEvent:"fakedropdone",squareWidth:!0},options),_init=function(){settings.autoGetWidth&&(settings.wrapperWidth=$(settings.widthSelector).width(),settings.wrapperHeight=settings.wrapperWidth*settings.ratioWrapper.ratio_height/settings.ratioWrapper.ratio_width);var item=$(this),wrapper=settings.wrapperSelector?item.closest(settings.wrapperSelector):item.parent(),args={item:item,settings:settings,wrapper:wrapper};settings.ratio=methods.ratio(args),settings.fill?(wrapper.css({overflow:"hidden",width:settings.wrapperWidth+"px",height:settings.wrapperHeight+"px"}),methods.scaleToFill(args)):methods.scaleToFit(args),item.data("fc.settings",settings).addClass(settings.initClass).trigger(settings.doneEvent)},images=this.filter("img"),others=this.filter(":not(img)");return images.length&&images.bind("load",function(){_init.call(this)}).each(function(){if(this.complete||this.complete===void 0){var src=this.src;this.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",this.src=src}}),others.length&&others.each(_init),this}};$.fn.fakecrop=function(method){if(methods[method])return methods[method].apply(this,Array.prototype.slice.call(arguments,1));if(typeof method=="object"||!method)return methods.init.apply(this,arguments);$.error("Method "+method+" does not exist on jQuery.fakecrop")}})(jQuery);
2//# sourceMappingURL=/cdn/shop/t/6/assets/jquery.fakecrop.js.map?v=7534225825422011931777005748

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.