1// СкÑипÑ, коÑоÑÑй подгонÑÐµÑ ÑазмеÑÑ Ð¸Ð·Ð¾Ð±Ñажений 2/* 3$(function() { 4 var images = $('.box img'); 5 images.bindImageLoad(function () { 6 var img = $(this); 7 var imgParent = img.parent(); 8 if (imgParent != undefined) { 9 var maxWidth = imgParent.innerWidth(); 10 if (maxWidth < img.outerWidth()) { 11 // еÑли доÑÑÑÐ¿Ð½Ð°Ñ ÑиÑина менÑÑе каÑÑинки Ñо менÑем ее ÑÐ°Ð·Ð¼ÐµÑ 12 img.removeAttr("style"); 13 img.css({ "max-width": "100%", "width": 'expression("auto")' }); 14 } 15 //console.log('src=' + img.attr('src') + " width=:" + img.outerWidth() + " height=:" + img.css("height") + " parent-width=:" + imgParent.innerWidth()); 16 } else { 17 //console.log('src=' + img.attr('src') + " width=:" + img.outerWidth() + " height=:" + img.css("height")); 18 } 19 }); 20 21}); 22 23*/
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.