1ACC.refinements = { 2 3 bindAll: function() 4 { 5 this.bindRefinementCategoryToggles(); 6 this.bindMoreLessToggles(); 7 }, 8 9 bindRefinementCategoryToggles: function() 10 { 11 $('a.refinementToggle').each(function () 12 { 13 $(this).attr('title', $(this).data('hideFacetText')); 14 15 $(this).click(function () 16 { 17 var content = $(this).closest('div.item').find('div.facetValues'); 18 $(this).attr('title', $(content).is(':visible') ? $(this).data('showFacetText') : $(this).data('hideFacetText')); 19 $(this).next().toggleClass('toggleArrow'); 20 21 $(content).slideToggle(); 22 23 return false; 24 }); 25 26 $(this).next().click(function () 27 { 28 $(this).prev().click(); 29 }); 30 }); 31 }, 32 33 bindMoreLessToggles: function () 34 { 35 $("a.show-more-less").click(function(e){ 36 37 e.preventDefault(); 38 39 var eParent = $(this).parents(".link-list"); 40 eParent.find(".topFacetValues").hide(); 41 eParent.find(".allFacetValues").show(); 42 }) 43 44 $("a.show-less").click(function(e){ 45 e.preventDefault(); 46 47 var eParent = $(this).parents(".link-list"); 48 eParent.find(".topFacetValues").show(); 49 eParent.find(".allFacetValues").hide(); 50 }) 51 } 52}; 53 54$(document).ready(function() 55{ 56 ACC.refinements.bindAll(); 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.