1$(function() 2{ 3 var follow = '/people/%s/follow?%d', 4 unfollow = '/people/%s/unfollow?%d'; 5 6 function toggleFollow(url, show) 7 { 8 $.ajax({ 9 url: url.replace('%d', Math.random()), 10 type: 'POST', 11 data: {}, 12 success: function() 13 { 14 show.fadeIn('fast'); 15 } 16 }); 17 } 18 19 $('p.follow').each(function() 20 { 21 var will_follow = $(this).find('span.username').text(), 22 nodes = { 23 is_following: $(this).find('span.is_following'), 24 not_following: $(this).find('span.not_following') 25 }; 26 27 nodes.is_following.find('a').click(function(e) 28 { 29 e.preventDefault(); 30 nodes.is_following.fadeOut('fast', function() 31 { 32 toggleFollow(unfollow.replace('%s', will_follow), nodes.not_following); 33 }); 34 }); 35 36 nodes.not_following.find('a').click(function(e) 37 { 38 e.preventDefault(); 39 nodes.not_following.fadeOut('fast', function() 40 { 41 toggleFollow(follow.replace('%s', will_follow), nodes.is_following); 42 }); 43 }); 44 }); 45});
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.