1$(function() { 2 /* add a link to portal agent if it was visited before */ 3 function readCookie(name) { /* http://www.quirksmode.org/js/cookies.html */ 4 var nameEQ = name + "="; 5 var ca = document.cookie.split(';'); 6 for(var i=0;i < ca.length;i++) { 7 var c = ca[i]; 8 while (c.charAt(0)==' ') c = c.substring(1,c.length); 9 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); 10 } 11 return null; 12 } 13 var portal_agent_url = decodeURIComponent(readCookie('publik_portal_agent_url') || ''); 14 var portal_agent_title = decodeURIComponent(readCookie('publik_portal_agent_title') || ''); 15 if (portal_agent_url && portal_agent_title) { 16 if (PUBLIK_PORTAL_AGENT_TITLE) portal_agent_title = PUBLIK_PORTAL_AGENT_TITLE; 17 if (PUBLIK_PORTAL_AGENT_URL) portal_agent_url = PUBLIK_PORTAL_AGENT_URL; 18 $('<a id="publik-portal-agent" href="' + portal_agent_url + '">' + 19 portal_agent_title + '</a>').appendTo('body'); 20 } 21});
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.