1(function($) { 2$(function(){ 3 var flag = false; 4 5 var detailIndex = $('#menu .search .radios > li input:checked').parent().index(); 6 $('#menu .search .detail li:eq(' + detailIndex + ')').show(); 7 8 $('#menu .search > img').click(function() { 9 action($(this)); 10 }); 11 12 $('#menu .search').skOuterClick(function() { 13 if($('#menu .search .slidebox .inner').css('marginLeft') == '0px') { 14 action($('#menu .search > img')); 15 }; 16 }); 17 18 $('#menu .search .radios > li input').click(function() { 19 detailIndex = $(this).parent().index(); 20 if($('#menu .search .detail > li:eq(' + detailIndex + ')').is(':hidden')) { 21 $('#menu .search .detail > li').hide(); 22 $('#menu .search .detail > li:eq(' + detailIndex + ')').fadeIn(); 23 }; 24 }); 25 26 function action(target) { 27 if(!flag) { 28 flag = true; 29 if(target.attr('src').match('active')) { 30 var deactive = target.attr('src').replace('_active.gif', '.gif'); 31 target.attr('src', deactive); 32 } else { 33 var active = target.attr('src').replace('.gif', '_active.gif'); 34 target.attr('src', active); 35 target.next().show(); 36 }; 37 var $marginLefty = target.next().children(); 38 $marginLefty.animate({ 39 marginLeft: parseInt($marginLefty.css('marginLeft'),10) == 0 ? 40 $marginLefty.outerWidth() : 0 41 }, function(){ 42 flag = false; 43 if($(this).css('marginLeft') == '325px') { 44 $(this).parent().hide(); 45 }; 46 }); 47 }; 48 }; 49}); 50})(jQuery);
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.