1$(document).ready(function() { 2 var top_html = ''; 3 var bottom_html = ''; 4 5 $('.smartbar_template').each(function(index, element) { 6 var position = $(element).attr('data-position'); 7 8 switch (position) { 9 case 'top' : 10 top_html += $(element).html(); 11 break; 12 case 'bottom' : 13 bottom_html += $(element).html(); 14 break; 15 case 'both' : 16 top_html += $(element).html(); 17 bottom_html += $(element).html(); 18 break; 19 } 20 }); 21 22 $('body').prepend(top_html); 23 $('body').append(bottom_html); 24 25 $('.smartbar_template').each(function(index, element) { 26 var effect = $(element).attr('data-effect'); 27 var this_class = ".smartbar_" + $(element).find('.smartbar_wrapper').first().attr('id'); 28 29 switch (effect) { 30 case 'appear' : 31 $(this_class).show(); 32 break; 33 case 'slide_down' : 34 $(this_class).slideDown(); 35 break; 36 case 'fade_in' : 37 $(this_class).fadeIn(); 38 break; 39 } 40 }); 41});
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.