1 2jQuery(document).ready(function() { 3 jQuery('.postTabs_divs').hide(); 4 jQuery('.postTabs_curr_div').show(); 5 jQuery('.postTabsLinks').each(function() { 6 jQuery(this).click(function() { 7 //alert(jQuery(this).attr('id')); 8 var info = jQuery(this).attr('id').split('_'); 9 postTabs_show(info[1], info[0]); 10 }); 11 }); 12 13 cookie_name = 'postTabs_' + postTabs.post_ID; 14 15 if (postTabs.use_cookie && postTabs_getCookie(cookie_name)) { 16 postTabs_show(postTabs_getCookie(cookie_name), postTabs.post_ID); 17 } 18}); 19 20function postTabs_show(tab,post){ 21 22 jQuery('.postTabs_divs').each(function() { 23 jQuery(this).hide(); 24 }); 25 jQuery('#postTabs_ul_'+post + ' li').each(function() { 26 jQuery(this).removeClass('postTabs_curr'); 27 }); 28 jQuery('#postTabs_li_'+tab+'_'+post).addClass('postTabs_curr'); 29 jQuery("#postTabs_"+tab+"_"+post).show(); 30 self.focus(); 31 32 //Cookies 33 var expire = new Date(); 34 var today = new Date(); 35 expire.setTime(today.getTime() + 3600000*24); 36 document.cookie = "postTabs_"+post+"="+tab+";expires="+expire.toGMTString(); 37 38} 39 40function posTabsShowLinks(tab){ 41 if (tab) window.status=tab; 42 else window.status=""; 43} 44 45function postTabs_getCookie(name) { 46 var nameEQ = name + "="; 47 var ca = document.cookie.split(';'); 48 for(var i=0;i < ca.length;i++) { 49 var c = ca[i]; 50 while (c.charAt(0)==' ') c = c.substring(1,c.length); 51 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); 52 } 53 return null; 54}
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.