1jQuery(document).ready(function(){ 2 3 var attrName = 'data-a-src' ; 4 if(jQuery('.wp_automatic_gallery').attr('data-a-src') == undefined) attrName = 'src'; 5 6 var wp_automatic_main_scr = jQuery('.wp_automatic_gallery:first-child').attr(attrName); 7 8 jQuery('.wp_automatic_gallery:first-child').before('<div class="wp_automatic_gallery_wrap"><div style="background-image:url(\'' + wp_automatic_main_scr +'\')" class="wp_automatic_gallery_main" ></div><div class="clear"></div></div>'); 9 10 11 jQuery('.wp_automatic_gallery').each(function(){ 12 13 jQuery('.wp_automatic_gallery_wrap').append('<div class="wp_automatic_gallery_btn" style="background-image:url(\''+ jQuery(this).attr( attrName ) + '\')" ></div>'); 14 jQuery(this).remove(); 15 }); 16 17 18 jQuery('.wp_automatic_gallery_btn:last').after('<div style="clear:both"></div><br>'); 19 20 21 22 jQuery('.wp_automatic_gallery_btn').click(function(){ 23 24 jQuery('.wp_automatic_gallery_main').css('background-image', jQuery(this).css('background-image') ); 25 26 }); 27 28 29});
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.