1/*------------------------------------------------------------------------------ 2 ãã©ã³ããµã¤ãºå¤æ´ï¼èæ¯è²å¤æ´ã¹ã¯ãªãã CMSé£åãã¼ã¸ã§ã³ 3 [注]CMSãã³ãã¬ã¼ãå ã«èæ¯è²ãè¨å®ããCSSã®URLãè¨å®ããå¿ è¦ãããã¾ã 4--------------------------------------------------------------------------------*/ 5 6/* ------ è¨å® [å ±é]------ */ 7var uniq_name = "fcmn_" //ã¯ããã¼åç§°ã®å [夿´å¯] 8var keepdays = 0; //ã¯ããã¼ã®ä¿åæé[夿´å¯] 9 10/* ------ è¨å® [ãã©ã³ããµã¤ãºå¤æ´]------ */ 11var step = 10; //ãã®ãã¼ã»ã³ãå»ã¿ã§æåã®å¤§å°ãå¤ãã¾ã[夿´å¯] 12var defSize = 100; //åæå¤ï¼ãã¼ã»ã³ãï¼[夿´å¯] 13var cookie_fs = uniq_name + "fontsize"; 14 15/* ------ è¨å® [èæ¯è²å¤æ´]------ */ 16var cookie_bgurl = uniq_name + "bgurl"; 17var cookie_bgid = uniq_name + "bgid"; 18 19/*------------------------------------------------------------------------------*/ 20var crtSize = defSize; 21function util_init(){ 22 //ãã©ã³ãè¨å®ãæ®ã£ã¦ãããåæ ãã 23 var tmp_fs= getCookie(cookie_fs); 24 if (tmp_fs) { 25 crtSize = parseInt(tmp_fs); 26 fsChange(crtSize); 27 } 28 29 //èæ¯è¨å®ãæ®ã£ã¦ãããåæ ãã 30 var tmp_bgid= getCookie(cookie_bgid); 31 var tmp_bgurl= getCookie(cookie_bgurl); 32 if (tmp_bgid && tmp_bgurl) { 33 bgChange(tmp_bgid,tmp_bgurl); 34 } 35} 36 37function getCookie(key){ 38 var sCookie = document.cookie; 39 var aData = sCookie.split(";"); 40 var oExp = new RegExp(" ", "g"); 41 key = key.replace(oExp, ""); 42 var i = 0; 43 while (aData[i]) { 44 var aWord = aData[i].split("="); 45 aWord[0] = aWord[0].replace(oExp, ""); 46 if (key == aWord[0]) return unescape(aWord[1]); 47 if (++i >= aData.length) break; 48 } 49 return ""; 50} 51 52function setCookie(key,value){ 53 var str = key + "=" + escape(value) + ";"; 54 str += "path=/;"; 55 if (keepdays != 0) { 56 var dt = new Date(); 57 dt.setDate(dt.getDate() + parseInt(keepdays)); 58 str += "expires=" + dt.toGMTString() + ";"; 59 } 60 document.cookie = str; 61} 62 63function deleteCookie(key){ 64 var str = key + "=;"; 65 str += "path=/;"; 66 var dt = new Date(); 67 dt.setDate(dt.getDate() -1); 68 str += "expires=" + dt.toGMTString() + ";"; 69 document.cookie = str; 70} 71 72function fsChange(arg){ 73 //æªå¯¾å¿ãã©ã¦ã¶å¯¾å¿ 74 if(!document.body){ 75 s_message("n_use"); 76 }else{ 77 //ç¾å¨ã®ãã©ã³ããµã¤ãºå¤ã夿´ 78 if(arg == "d"){ 79 crtSize = defSize; 80 deleteCookie(cookie_fs); 81 } 82 else if(arg == "s"){ 83 if (parseInt(crtSize) > parseInt(step) ){ 84 crtSize -= parseInt(step); 85 setCookie(cookie_fs,crtSize); 86 } 87 } 88 else if(arg == "l"){ 89 crtSize += parseInt(step); 90 setCookie(cookie_fs,crtSize); 91 } 92 //ãã©ã³ããµã¤ãºã夿´ 93 document.body.style.fontSize = crtSize + "%"; 94 } 95} 96 97function bgChange(node_id,url_id){ 98 var target = document.getElementById(node_id); 99 //æªå¯¾å¿ãã©ã¦ã¶å¯¾å¿ 100 if(!target || !target.cloneNode){ 101 s_message("n_use"); 102 }else{ 103 target.href = eval(url_id); //CMSã§ã¯ç¸å¯¾ãã¹ã§URLãè¨å®ããã®ã§ãæ¯åãã¹ãåãåããªããã¾ã 104 setCookie(cookie_bgurl,url_id); 105 setCookie(cookie_bgid,node_id); 106 } 107} 108 109function s_message(arg){ 110 if(arg == "n_use"){ 111 alert("ã使ãã®ãã©ã¦ã¶ã§ã¯ãã®æ©è½ã使ç¨ã§ãã¾ãã"); 112 } 113}
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.