1$.fn.resizeImg=function(a,e){if(!$(this).length){return}var c=$(this).getImgSize();var b=hp=100;var d=0;if(a<c.width){b=a/c.width*100}if(e<c.height){hp=e/c.height*100}if(b<=hp){d=b}else{if(hp<b){d=hp}}if(d){w=Math.round(c.width*d/100);h=Math.round(c.height*d/100);$(this).width(w).height(h);if($(this).parent().hasClass("-amp-element")){$(this).parent().width(w).height(h)}}};$.fn.getResizeImg=function(a,e){if(!$(this).length){return}var c=$(this).getImgSize();var b=hp=100;var d=0;if(a<c.width){b=a/c.width*100}if(e<c.height){hp=e/c.height*100}if(b<=hp){d=b}else{if(hp<b){d=hp}}return{width:Math.round(c.width*d/100),height:Math.round(c.height*d/100)}};$.fn.fitImgW=function(a,e){if(!$(this).length){return}var c=$(this).getImgSize();if(c.width<a){a=c.width}if(c.height<=e){e=c.height}var b=hp=100;var d=a/c.width*100;w=Math.round(c.width*d/100);h=Math.round(c.height*d/100);$(this).width(w).height(h);if($(this).parent().hasClass("-amp-element")){$(this).parent().width(w).height(h)}};$.fn.fitImgH=function(a,e){if(!$(this).length){return}var c=$(this).getImgSize();if(c.width<a){a=c.width}if(c.height<=e){e=c.height}var b=hp=100;var d=e/c.height*100;w=Math.round(c.width*d/100);h=Math.round(c.height*d/100);$(this).width(w).height(h);if($(this).parent().hasClass("-amp-element")){$(this).parent().width(w).height(h)}};$.fn.getImgSize=function(){var f=$(this).get(0);var a=f.width,b=f.height;if(typeof f.naturalWidth!=="undefined"){a=f.naturalWidth;b=f.naturalHeight;if(!a||!b){var e=new Image();e.src=$(f).attr("src");a=e.width;b=e.height}}else{if(typeof f.runtimeStyle!=="undefined"){var d=f.runtimeStyle;var c={w:d.width,h:d.height};d.width="auto";d.height="auto";a=f.width;b=f.height;d.width=c.w;d.height=c.h}else{var c={w:f.width,h:f.height};f.removeAttribute("width");f.removeAttribute("height");a=f.width;b=f.height;f.width=c.w;f.height=c.h}}if(!a&&!b){a=$(this).width();b=$(this).height()}return{width:a,height:b}};$.fn.setImgPos=function(a,f){var d=$(this);var b=d.width();var c=d.height();var e=((f-c)/2);d.css("margin-top",e+"px")};
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.