PageSourceSearch

https://www.data-privacy-day.jp/wp-content/themes/dpd/common/js/cookie.js?1791355388

js data-privacy-day.jp collected 2026-10-07 06:43:27 UTC 5,723 bytes, 149 lines download raw bytes

1/*
2===================
3 Cookie
4===================
5*/
6$(function(){
7	window.cookieconsent.initialise({
8		"palette": {
9	    	"popup": {
10	    		"background": "rgba(48,66,78,.9)"
11	    },
12		"button": {
13	      "background": "#A07F50",
14	      "text": "#fff"
15		}
16	},
17	"theme": "edgeless",
18	"type": "opt-in",
19	"content": {
20    "message": "このサイトは、日本プライバシー認証機構(JPAC)が定める<a style='color:#fff;' href='https://www.jpac-privacy.jp/statement/'>プライバシーステートメント</a>及び<a style='color:#fff;' href='https://www.jpac-privacy.jp/cookie/'>クッキーポリシー</a>に基づき、クッキーを利用しています。クッキーの取得と利用に同意をお願いいたします。",
21    	"deny": "同意しない",
22    	"allow": "同意する",
23    	"link": "",
24    	"href": ""
25  	},
26	onInitialise: async function (status) {
27		const type = this.options.type;
28		const didConsent = this.hasConsented();
29		if (type == 'opt-in' && didConsent) {
30			// enable cookies有効
31//			await fetch('');
32			/*
33			===================
34			google analytics
35			===================
36			*/
37			<!-- Google tag (gtag.js) -->
38
39			
vendor: 143 bytes, lines 39-43
39window.dataLayer = window.dataLayer || [];
40			  function gtag(){dataLayer.push(arguments);}
41			  gtag('js', new Date());
42
43			  gtag('config', '
43G-GD7Z4CZVPY
vendor: 9 bytes, lines 43-44
43');
44			  
44gtag('config', 'G-43TME1KBZY');
45
46			if(location.host !== "192.168.31.163"){
vendor: 357 bytes, lines 46-52
46
47				(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
48				(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
49				m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
50				})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
51		
52				ga('create', '
52UA-80754332-5
vendor: 47 bytes, lines 52-55
52', 'auto');
53				ga('send', 'pageview');
54		
55				
55//ga('create', 'UA-86550040-7', 'auto', {'name': 'newTracker'});
56				//ga('newTracker.send', 'pageview');
57			}
58			/*
59			===================
60			shanon Tracking Tag 
61			===================
62			*/
63//			if(location.host !== "192.168.31.163"){
64//				(function(n){
65//				var w = window, d = document;
66//				w['ShanonCAMObject'] = n, w[n] = w[n] || function(){(w[n].q=w[n].q||[]).push(arguments)};
67//				w[n].date = 1*new Date();
68//				var e = d.createElement('script'), t = d.getElementsByTagName('script')[0];
69//				e.async = 1, e.type='text/javascript', e.charset='utf-8', e.src = 'https://tracker.shanon-services.com/static/js/cam3.js' + "?_=" + w[n].date;
70//				t.parentNode.insertBefore(e,t);
71//				})('_cam');
72
73//				_cam('create', 'FYobxfaQHQ-846', ['jpac-privacy.jp','truste.or.jp','data-privacy-day.jp']);
74//				_cam('require', 'crossLinker');
75//				_cam('crossLinker:allLink', ['jpac-privacy.jp','truste.or.jp','data-privacy-day.jp']);
76//				_cam('send');
77//			}
78		}
79	},
80	onStatusChange: async function (status, chosenBefore) {
81		const type = this.options.type;
82		const didConsent = this.hasConsented();
83		if (type == 'opt-in' && didConsent) {
84			// enable cookies有効
85//     		await fetch('');
86			/*
87			===================
88			google analytics
89			===================
90			*/
91			<!-- Google tag (gtag.js) -->
92
93			
vendor: 143 bytes, lines 93-97
93window.dataLayer = window.dataLayer || [];
94			  function gtag(){dataLayer.push(arguments);}
95			  gtag('js', new Date());
96
97			  gtag('config', '
97G-GD7Z4CZVPY
vendor: 9 bytes, lines 97-98
97');
98			  
98gtag('config', 'G-43TME1KBZY');
99
100			if(location.host !== "192.168.31.163"){
vendor: 357 bytes, lines 100-106
100
101				(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
102				(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
103				m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
104				})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
105		
106				ga('create', '
106UA-80754332-5
vendor: 47 bytes, lines 106-109
106', 'auto');
107				ga('send', 'pageview');
108		
109				
109//ga('create', 'UA-86550040-7', 'auto', {'name': 'newTracker'});
110				//ga('newTracker.send', 'pageview');
111			}
112			/*
113			===================
114			shanon Tracking Tag 
115			===================
116			*/
117//			if(location.host !== "192.168.31.163"){
118//				(function(n){
119//				var w = window, d = document;
120//				w['ShanonCAMObject'] = n, w[n] = w[n] || function(){(w[n].q=w[n].q||[]).push(arguments)};
121//				w[n].date = 1*new Date();
122//				var e = d.createElement('script'), t = d.getElementsByTagName('script')[0];
123//				e.async = 1, e.type='text/javascript', e.charset='utf-8', e.src = 'https://tracker.shanon-services.com/static/js/cam3.js' + "?_=" + w[n].date;
124//				t.parentNode.insertBefore(e,t);
125//				})('_cam');
126
127//				_cam('create', 'FYobxfaQHQ-846', ['jpac-privacy.jp','truste.or.jp','data-privacy-day.jp']);
128//				_cam('require', 'crossLinker');
129//				_cam('crossLinker:allLink', ['jpac-privacy.jp','truste.or.jp','data-privacy-day.jp']);
130//				_cam('send');
131//			}
132    	}
133	},
134	// 再度、ポップアップを表示させたとき
135	onRevokeChoice: function () {
136		const type = this.options.type;
137    	if (type == 'opt-in') {
138      		// disable cookies無効
139      		//document.cookie = "PHPSESSID=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
140      		//document.cookie = "_ga=; expires=Thu, 01 Jan 1970 00:00:00 UTC; domain=laboradian.com; path=/;";
141      		//document.cookie = "_gid=; expires=Thu, 01 Jan 1970 00:00:00 UTC; domain=laboradian.com; path=/;";
142      		document.cookie = "_gat_gtag_G-43TME1KBZY=; expires=Thu, 01 Jan 1970 00:00:00 UTC; domain=data-privacy-day.jp; path=/;";
143      		document.cookie = "_gat_gtag_G-GD7Z4CZVPY=; expires=Thu, 01 Jan 1970 00:00:00 UTC; domain=data-privacy-day.jp; path=/;";
144      		document.cookie = "_gat_gtag_UA-80754332-5=; expires=Thu, 01 Jan 1970 00:00:00 UTC; domain=data-privacy-day.jp; path=/;";
145      		//window['ga-disable-UA_86550040_1'] = true;
146    	}
147  	}
148	})
149});

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.