1function init(){ 2 size=getCookie("dc_fontsize"); 3 if (size!=null && size!='') 4 document.getElementsByTagName("body")[0].style.fontSize=size; 5 else { 6 document.getElementsByTagName("body")[0].style.fontSize="0.8em"; 7 storeSize(); 8 } 9} 10 11/* function changeSize(add) */ 12 13function changeSize(add){ 14 foo=document.getElementsByTagName("body")[0].style.fontSize; 15 bar=foo.split("."); 16 17 entier=parseInt(bar[0]); 18 19 if(bar[1]) 20 decimal=parseInt(bar[1].substr(0,1)); 21 else 22 decimal=0; 23 24 if(decimal==0 && add<0) { 25 entier+=add; 26 decimal=9; 27 } 28 else if(decimal==9 && add>0) { 29 entier+=add; 30 decimal=0; 31 } 32 else { 33 decimal+=add; 34 } 35 36 size=entier+"."+decimal; 37 38 if(size=='0.5') 39 size='0.6'; 40 41 if(size=='2.0') 42 size='1.9'; 43 44 document.getElementsByTagName("body")[0].style.fontSize=size+"em"; 45 for(i=0; (a = document.getElementsByTagName("p")[i]); i++) { 46 document.getElementsByTagName("p")[i].style.fontSize=size+"em"; 47 } 48 49 storeSize(); 50} 51 52/* function storeSize() */ 53 54function storeSize(){ 55 var exp = new Date(); 56 exp.setTime(exp.getTime() + 24*60*60*90*1000); 57 size=document.getElementsByTagName("body")[0].style.fontSize; 58 setCookie("dc_fontsize",size,exp,"/"); 59} 60 61/* function setCookie() */ 62 63function setCookie(name, value, expires, path, domain, secure) { 64 var curCookie = name + "=" + escape(value) + 65 ((expires) ? "; expires=" + expires.toGMTString() : "") + 66 ((path) ? "; path=" + path : "") + 67 ((domain) ? "; domain=" + domain : "") + 68 ((secure) ? "; secure" : "") 69 document.cookie = curCookie 70} 71 72/* function getCookie() */ 73 74function getCookie(name) { 75 var prefix = name + "=" 76 var cookieStartIndex = document.cookie.indexOf(prefix) 77 if (cookieStartIndex == -1) 78 return null 79 var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + 80 prefix.length) 81 if (cookieEndIndex == -1) 82 cookieEndIndex = document.cookie.length 83 return unescape(document.cookie.substring(cookieStartIndex + 84 prefix.length, 85 cookieEndIndex)) 86}
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.