PageSourceSearch

https://www.nagoyatv.com/themes/nagoyatv_pc/common/js/cookie.js

js nagoyatv.com collected 2026-09-24 08:48:56 UTC 764 bytes, 28 lines download raw bytes

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.