1function initSidebarClicker(clicker_tag,show_icon,close_icon,parent_tag) 2{ 3 if(parent_tag===undefined || parent_tag===null){ 4 parent_tag='sidebar-product' 5 } 6 if(show_icon===undefined || show_icon===null){ 7 show_icon='' 8 } 9 if(close_icon===undefined || close_icon===null){ 10 close_icon='' 11 } 12 var parent_obj=$('.'+parent_tag) 13 parent_obj.find('dd').hide(); 14 $.each(parent_obj.find('dl'), function (k, v) { 15 if ($(v).find('dd').length > 0 && show_icon!=='') { 16 var show_clicker='<'+clicker_tag+'>'+show_icon+'</'+clicker_tag+'>' 17 $(v).prepend(show_clicker) 18 } 19 }) 20 parent_obj.find(clicker_tag).click(function () { 21 var thisDd = $(this).parent().find('dd') 22 23 if (thisDd.is(':visible')) { 24 thisDd.slideUp(300) 25 $(this).removeClass('clicker_active') 26 if(show_icon!==''){ 27 $(this).html(show_icon) 28 } 29 } else { 30 var otherDd = parent_obj.find('dd:visible') 31 var otherDt = parent_obj.find(clicker_tag+'.clicker_active') 32 otherDd.slideUp(300, function () { 33 otherDt.removeClass('clicker_active') 34 if(show_icon!==''){ 35 otherDt.html(show_icon) 36 } 37 }) 38 thisDd.slideDown(300) 39 $(this).addClass('clicker_active') 40 if(close_icon!==''){ 41 $(this).html(close_icon) 42 } 43 44 } 45 46 }) 47}
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.