1// ã¯ããã¼ã®å¤ãåå¾ getCookie(ã¯ããã¼å); // 2function getCookie(c_name){ 3 var st=""; 4 var ed=""; 5 if(document.cookie.length>0){ 6 // ã¯ããã¼ã®å¤ãåãåºã 7 st=document.cookie.indexOf(c_name + "="); 8 if(st!=-1){ 9 st=st+c_name.length+1; 10 ed=document.cookie.indexOf(";",st); 11 if(ed==-1) ed=document.cookie.length; 12 // å¤ããã³ã¼ããã¦è¿ã 13 return unescape(document.cookie.substring(st,ed)); 14 } 15 } 16 return ""; 17} 18// ã¯ããã¼ã®å¤ãã¢ã©ã¼ãã§è¡¨ç¤º 19function checkCookie(){ 20 if(getCookie('testName')){ 21 var setName = getCookie('testName'); 22 alert(setName); 23 } 24} 25 26if( 'on' == getCookie('js-switch_theme%5B0%5D') ){ 27 document.getElementById("switch_theme").style.display="block"; 28}
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.