PageSourceSearch

https://www.city.kamiamakusa.kumamoto.jp/assets/js/fsc.js

js city.kamiamakusa.kumamoto.jp collected 2026-10-02 08:40:19 UTC 3,308 bytes, 35 lines download raw bytes

1uaName=navigator.userAgent;appName=navigator.appVersion;var fontSizeUnit="%";var perOrder=5;var defaultSize=95;var ckName="FSCb";var ckDays=2;var ckPath="/"
2var fsCK=GetCookie(ckName);if(fsCK==null){currentSize=defaultSize;}
3else{currentSize=Number(fsCK);}
4function fscRef(){if((document.layers)||((appName.indexOf("Mac",0)!=-1)&&(uaName.indexOf("MSIE 4.0",0)!=-1))){return false;}
5else if(document.body){document.body.style.fontSize=currentSize+fontSizeUnit;}}
6function fsc(CMD){if(CMD=="larger"){var newSize=Number(currentSize+perOrder);SetCookie(ckName,newSize);}
7if(CMD=="smaller"){if(currentSize!=perOrder){var newSize=Number(currentSize-perOrder);SetCookie(ckName,newSize);}
8else{var newSize=Number(currentSize);}}
9if(CMD=="default"){var newSize=defaultSize;SetCookie(ckName,newSize);}
10if(document.layers){window.alert("Netscape Communicator4.x is not supported.");return false;}
11else if((appName.indexOf("Mac",0)!=-1)&&(uaName.indexOf("MSIE 4.0",0)!=-1)){window.alert("Sorry! MacIE4.0 is not supported.");return false;}
12else{currentSize=newSize;fscRef();}}
13function fscLarge(evt){var keyvalue=getKeyCode(evt);if(keyvalue!=9){var newSize=Number(currentSize+perOrder);SetCookie(ckName,newSize);if(document.layers){window.alert("Netscape Communicator4.x is not supported.");return false;}
14else if((appName.indexOf("Mac",0)!=-1)&&(uaName.indexOf("MSIE 4.0",0)!=-1)){window.alert("Sorry! MacIE4.0 is not supported.");return false;}
15else{currentSize=newSize;fscRef();}}
16return false;}
17function fscSmall(evt){var keyvalue=getKeyCode(evt);if(keyvalue!=9){if(currentSize!=perOrder){var newSize=Number(currentSize-perOrder);SetCookie(ckName,newSize);}
18else{var newSize=Number(currentSize);}
19if(document.layers){window.alert("Netscape Communicator4.x is not supported.");return false;}
20else if((appName.indexOf("Mac",0)!=-1)&&(uaName.indexOf("MSIE 4.0",0)!=-1)){window.alert("Sorry! MacIE4.0 is not supported.");return false;}
21else{currentSize=newSize;fscRef();}}
22return false;}
23function fscDefault(evt){var keyvalue=getKeyCode(evt);if(keyvalue!=9){var newSize=defaultSize;DeleteCookie(ckName);if(document.layers){window.alert("Netscape Communicator4.x is not supported.");return false;}
24else if((appName.indexOf("Mac",0)!=-1)&&(uaName.indexOf("MSIE 4.0",0)!=-1)){window.alert("Sorry! MacIE4.0 is not supported.");return false;}
25else{currentSize=newSize;fscRef();}}
26return false;}
27function getKeyCode(evt){var kc;if(evt.keyCode){kc=evt.keyCode;}else if(evt.which){kc=evt.which;}else if(evt.charCode){kc=evt.charCode;}
28return kc;}
29function SetCookie(name,value){var dobj=new Date();dobj.setTime(dobj.getTime()+24*60*60*ckDays*1000);var expiryDate=dobj.toGMTString();document.cookie=name+'='+escape(value)+';expires='+expiryDate+';path='+ckPath;}
30function GetCookie(name){var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen){var j=i+alen;if(document.cookie.substring(i,j)==arg)
31return getCookieVal(j);i=document.cookie.indexOf(" ",i)+1;if(i==0)break;}
32return null;}
33function getCookieVal(offset){var endstr=document.cookie.indexOf(";",offset);if(endstr==-1)
34endstr=document.cookie.length;return unescape(document.cookie.substring(offset,endstr));}
35function DeleteCookie(name){if(GetCookie(name)){document.cookie=name+'='+'; expires=Thu, 01-Jan-70 00:00:01 GMT;path='+ckPath;}}

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.