PageSourceSearch

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

js data-privacy-day.jp collected 2026-10-07 06:43:24 UTC 7,505 bytes, 231 lines download raw bytes

1//UAを確認してbodyにクラス追加
2/*$(document).ready(function(){
3	var agent = navigator.userAgent;
4	if(agent.search(/Android/) != -1){
5		$("body").addClass("android");
6	} else{
7		$(function(){
8			jQuery('#maximage').maximage();
9		});
10	}
11});*/
12/*
13===================
14ビジュアル slider
15===================
16*/
17$(document).ready(function(){
18	$(".skippr-slider").skippr({
19		transition: 'fade',
20		autoPlay: true,
21		childrenElementType : 'div',
22		arrows : false,
23		navType: false,
24		hidePrevious : false,
25		autoPlayDuration: 5000
26	});
27});
28/*
29===================
30adjuster
31===================
32*/
33function adjuster(o){
34	var w = $(window).width();
35	if(w >= 767){
36		var maxHeight = 0;
37		$(o).each(function(){
38		   if ($(this).height() > maxHeight) { 
39			   maxHeight = $(this).height();
40			}
41		});
42		$(o).height(maxHeight);
43	}
44}
45$(document).ready(function(){
46	var hsize = $(window).height();
47	$("section .dpd-mv").css("height", hsize + "px");
48});
49$(window).resize(function(){
50	var hsize = $(window).height();
51	$("section .dpd-mv").css("height", hsize + "px");
52});
53//画像読み込み後
54$(window).load(function(){
55	adjuster(".card");
56});
57//最初に読み込み
58$(function(){
59	/*
60	===================
61	animation
62	===================
63	*/
64	$(".fade-in").css('visibility','hidden');
65	$(window).scroll(function(){
66		var windowHeight = $(window).height(),
67		topWindow = $(window).scrollTop();
68		$(".fade-in").each(function(){
69			var targetPosition = $(this).offset().top;
70			if(topWindow > targetPosition - windowHeight + 150){
71			$(this).addClass("fadeIn");
72			}
73		});
74	});
75
76	$(".fade-dwn").css('visibility','hidden');
77	$(window).scroll(function(){
78		var windowHeight = $(window).height(),
79		topWindow = $(window).scrollTop();
80		$(".fade-dwn").each(function(){
81			var targetPosition = $(this).offset().top;
82			if(topWindow > targetPosition - windowHeight + 150){
83			$(this).addClass("fadeInDown");
84			}
85		});
86	});
87/*
88==================
89google analytics
90==================
91*/
92//	if(location.host !== "192.168.39.29"){
93//		(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
94//		(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
95//		m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
96//		})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
97
98//		ga('create', 'UA-80754332-5', 'auto');
99//		ga('send', 'pageview');
100
101//		ga('create', 'UA-86550040-7', 'auto', {'name': 'newTracker'});
102//		ga('newTracker.send', 'pageview');
103//	}
104
105/*
106===================
107shanon Tracking Tag 
108===================
109*/
110//	if(location.host !== "192.168.39.29"){
111//		(function(n){
112//		var w = window, d = document;
113//		w['ShanonCAMObject'] = n, w[n] = w[n] || function(){(w[n].q=w[n].q||[]).push(arguments)};
114//		w[n].date = 1*new Date();
115//		var e = d.createElement('script'), t = d.getElementsByTagName('script')[0];
116//		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;
117//		t.parentNode.insertBefore(e,t);
118//		})('_cam');
119
120//		_cam('create', 'FYobxfaQHQ-846', ['jpac-privacy.jp','truste.or.jp','data-privacy-day.jp']);
121//		_cam('require', 'crossLinker');
122//		_cam('crossLinker:allLink', ['jpac-privacy.jp','truste.or.jp','data-privacy-day.jp']);
123//		_cam('send');
124//	}
125
126});
127//リサイズで読み込み
128$(window).resize(function(){
129	adjuster(".card");
130});
131$(window).resize(function(){
132	var l = Math.floor(($(window).width() - $("#menu-main_menu-1").width()) / 2);
133    var t = Math.floor(($(window).height() - $("#menu-main_menu-1").height()) / 2);
134 
135    $("#menu-main_menu-1").css({
136        "top": t,
137        "left": l
138    });
139});
140
141//ポップアップ表示
142
143$(function(){
144	    // スクロールバーの横幅を取得
145		$('html').append('<div class="scrollbar" style="overflow:scroll;"></div>');
146	    var scrollsize = window.innerWidth - $('.scrollbar').prop('clientWidth');
147	    $('.scrollbar').hide();
148	    // 「.modal-open」をクリック
149	    $('.modal-open').click(function(){
150	        // html、bodyを固定(overflow:hiddenにする)
151	        $('html, body').addClass('lock');
152	        // オーバーレイ用の要素を追加
153	        $('body').append('<div class="modal-overlay"></div>');
154	        // オーバーレイをフェードイン
155	        $('.modal-overlay').fadeIn('slow');
156	        // モーダルコンテンツのIDを取得
157			var modal = "#" + $(this).attr('data-target');
158	         // モーダルコンテンツを囲む要素を追加
159	        $(modal).wrap("<div class='modal-wrap'></div>");
160	        // モーダルコンテンツを囲む要素を表示
161	        $('.modal-wrap').show();
162	        // モーダルコンテンツの表示位置を設定
163	        modalResize();
164	         // モーダルコンテンツフェードイン
165	        $(modal).fadeIn('slow');
166	        // モーダルコンテンツをクリックした時はフェードアウトしない
167	        $(modal).click(function(e){
168	            e.stopPropagation();
169	        });
170	        // 「.modal-overlay」あるいは「.modal-close」をクリック
171	        $('.modal-wrap, .modal-close').off().click(function(){
172	            // モーダルコンテンツとオーバーレイをフェードアウト
173	            $(modal).fadeOut('slow');
174	            $('.modal-overlay').fadeOut('slow',function(){
175	                // html、bodyの固定解除
176	                $('html, body').removeClass('lock');
177	                // オーバーレイを削除
178	                $('.modal-overlay').remove();
179	                // モーダルコンテンツを囲む要素を削除
180	                $(modal).unwrap("<div class='modal-wrap'></div>");
181	           });
182	        });
183	        // リサイズしたら表示位置を再取得
184	        $(window).on('resize', function(){
185	            modalResize();
186	        });
187	        // モーダルコンテンツの表示位置を設定する関数
188	        function modalResize(){
189	            // ウィンドウの横幅、高さを取得
190	            var w = $(window).width();
191	            var h = $(window).height();
192	            // モーダルコンテンツの横幅、高さを取得
193	            var mw = $(modal).outerWidth(true);
194	            var mh = $(modal).outerHeight(true);
195	            // モーダルコンテンツの表示位置を設定
196	            if ((mh > h) && (mw > w)) {
197	                $(modal).css({'left': 0 + 'px','top': 0 + 'px'});
198	            } else if ((mh > h) && (mw < w)) {
199	                var x = (w - scrollsize - mw) / 2;
200	                $(modal).css({'left': x + 'px','top': 0 + 'px'});
201	            } else if ((mh < h) && (mw > w)) {
202	                var y = (h - scrollsize - mh) / 2;
203	                $(modal).css({'left': 0 + 'px','top': y + 'px'});
204	            } else {
205					var x = (w - mw) / 2;
206					var y = (h - mh) / 2;
207					$(modal).css({'left': x + 'px','top': y + 'px'});
208				}
209	        }
210	 });
211});
212/*$(function(){
213	$('#checkBtn').prop('disabled', true);	
214    $( '#scroll' ).scroll( function () {
215        var scrollTop = this.scrollTop;
216		var scrollHeight = $('#scroll').outerHeight();
217		if ((scrollHeight + scrollTop) == this.scrollHeight){
218			$('#checkBtn').prop('disabled', false);
219		}
220    });
221});*/
222
223$(function() {
224  $('#checkBtn').change(function(){
225    if ($(this).is(':checked')) {
226		$('#submitBtn').prop('disabled', false);
227    } else {
228    	$('#submitBtn').prop('disabled', true);
229    }
230  });
231});

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.