PageSourceSearch

https://itapro-shop.com/js/libs/jquery/plugins/imagefit/jquery.imagefit.min.js

js itapro-shop.com collected 2026-10-08 22:08:44 UTC 1,484 bytes, 5 lines download raw bytes

1/*!
2 * jQuery.imagefit imploved version
3 * original: https://github.com/periplox/jquery.imagefit
4 */
5(function(b,a,c){b.fn.imagefit=(function(){var f={ignore:"",mode:"outside",halign:"center",valign:"middle",force:true};return function(h){h=b.extend({},f,h);var g="img";if(h.ignore.length>0){g+=":not("+h.ignore+")"}return this.each(function(){var k=b(this);var i=k.innerWidth();var j=k.innerHeight();if(i===0||j===0){return}k.find(g).each(function(){var l=this;var m=d(l);if(m.width===0||m.height===0){return}k.css({position:"relative",overflow:"hidden"});e(h,i,j,b(l),m.width,m.height)})})};function d(i){var j={};if(i.naturalWidth!==c){j={width:i.naturalWidth,height:i.naturalHeight}}else{if(i.runtimeStyle!==c){var h=i.runtimeStyle;var k=h.width;var g=h.height;h.width="auto";h.height="auto";j={width:i.width,height:i.height};h.width=k;h.height=g}else{var k=i.width;var g=i.height;i.removeAttribute("width");i.removeAttribute("height");j={width:i.width,height:i.height};i.width=k;i.height=g}}return j}function e(p,m,l,g,o,h){if(o>m||h>
5l||p.force){var i=m/l;var k=o/h;if(p.mode==="inside"){if(i<k){o=m;h=o/k}else{h=l;o=h*k}}if(p.mode==="outside"){if(i<k){h=l;o=h*k}else{o=m;h=o/k}}}var j=0;if(p.halign==="left"){j=0}if(p.halign==="center"){j=(m-o)/2}if(p.halign==="right"){j=(m-o)}var n=0;if(p.valign==="top"){n=0}if(p.valign==="middle"){n=(l-h)/2}if(p.valign==="bottom"){n=(l-h)}g.css({position:"absolute",left:j+"px",top:n+"px",width:o+"px",height:h+"px"})}})()})(jQuery,window);

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.