1jQuery(document).ready(function($) { 2 3$('img.rounded').one('load',function () { 4 var img = $(this); 5 var img_width = img.width(); 6 var img_height = img.height(); 7 8 // build wrapper 9 var wrapper = $('<div class="rounded_wrapper"></div>'); 10 wrapper.width(img_width); 11 wrapper.height(img_height); 12 13 // move CSS properties from img to wrapper 14 wrapper.css('float', img.css('float')); 15 img.css('float', 'none') 16 17 wrapper.css('margin-right', img.css('margin-right')); 18 img.css('margin-right', '0') 19 20 wrapper.css('margin-left', img.css('margin-left')); 21 img.css('margin-left', '0') 22 23 wrapper.css('margin-bottom', img.css('margin-bottom')); 24 img.css('margin-bottom', '0') 25 26 wrapper.css('margin-top', img.css('margin-top')); 27 img.css('margin-top', '0') 28 29 wrapper.css('display', 'block'); 30 img.css('display', 'block') 31 32 // IE6 fix (when image height or width is odd) 33 if ($.browser.msie && $.browser.version == '6.0') 34 { 35 if(img_width % 2 != 0) 36 { 37 wrapper.addClass('ie6_width') 38 } 39 if(img_height % 2 != 0) 40 { 41 wrapper.addClass('ie6_height') 42 } 43 } 44 45 // wrap image 46 img.wrap(wrapper); 47 48 // add rounded corners 49 img.after('<div class="tl"></div>'); 50 img.after('<div class="tr"></div>'); 51 img.after('<div class="bl"></div>'); 52 img.after('<div class="br"></div>'); 53}).each(function(){ 54 if(this.complete) $(this).trigger("load"); 55}); 56 57});
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.