PageSourceSearch

https://www.cospa.com/js/portal202109.js

js cospa.com collected 2026-10-09 22:41:00 UTC 8,219 bytes, 318 lines download raw bytes

1// JavaScript Document
2
3//ALL Load
4
5$(function(){
6	RollOverSetg();
7	RollOverSetj();
8	RollOverSetc();
9	RollOverSetp();
10
11	PageTopSet();
12	
13	SearchChange();
14	TitleChange();
15	ItemChange();
16	if(document.getElementById("tokuori")){
17		Oritoku();
18	}
19});
20
21
22
23function Oritoku(){
24	$(document).ready(function(){
25		$(".oritoku").each(function(){
26			jQuery(this).find("li:odd").addClass("right");
27		});
28	});
29}
30
31
32//RollOver
33function RollOverSetg(){
34	RollOverg(".b_mlogin");
35	RollOverg(".b_detail");
36	RollOverg(".b_entry_mem");
37	RollOverg(".leftbox .search_list");
38	RollOverg(".b_guide");
39	RollOverg(".hover_g");
40}
41
42function RollOverg(target){
43	$target = $(target);
44	$("img", $target).each(function(){
45		$(this).mouseover(function(){
46			this.setAttribute("src", this.getAttribute("src").replace(".gif", "_on.gif"));
47        })
48		$(this).mouseout(function(){
49			this.setAttribute("src", this.getAttribute("src").replace("_on.gif", ".gif"));
50        })
51		$(".stay").unbind();
52	});
53}
54
55function RollOverSetj(){
56	RollOverj(".hover_j");
57}
58
59function RollOverj(target){
60	$target = $(target);
61	$("img", $target).each(function(){
62		$(this).mouseover(function(){
63			this.setAttribute("src", this.getAttribute("src").replace(".jpg", "_on.jpg"));
64        })
65		$(this).mouseout(function(){
66			this.setAttribute("src", this.getAttribute("src").replace("_on.jpg", ".jpg"));
67        })
68		$(".stay").unbind();
69	});
70}
71
72function RollOverSetc(){
73	RollOverc(".hover_c");
74}
75
76function RollOverc(target){
77	$target = $(target);
78	$("input", $target).each(function(){
79		$(this).mouseover(function(){
80			this.setAttribute("src", this.getAttribute("src").replace(".jpg", "_on.jpg"));
81        })
82
83		$(this).mouseout(function(){
84			this.setAttribute("src", this.getAttribute("src").replace("_on.jpg", ".jpg"));
85        })
86
87		$(".stay").unbind();
88	});
89}
90
91function RollOverSetp(){
92	RollOverp(".hover_p");
93}
94
95function RollOverp(target){
96	$target = $(target);
97	$("img", $target).each(function(){
98		$(this).mouseover(function(){
99			this.setAttribute("src", this.getAttribute("src").replace(".png", "_on.png"));
100        })
101		$(this).mouseout(function(){
102			this.setAttribute("src", this.getAttribute("src").replace("_on.png", ".png"));
103        })
104		$(".stay").unbind();
105	});
106}
107
108function PageTopSet(){
109
110	PageTop("#link_to_top","#wrapper");
111	PageTop(".link_to_toc0","#toc0");
112	PageTop(".link_to_toc1","#toc1");
113	PageTop(".link_to_toc2","#toc2");
114	PageTop(".link_to_toc3","#toc3");
115	PageTop(".link_to_toc4","#toc4");
116	PageTop(".link_to_toc5","#toc5");
117	PageTop(".link_to_toc6","#toc6");
118	PageTop(".link_to_toc7","#toc7");
119	PageTop(".link_to_toc8","#toc8");
120	PageTop(".link_to_toc9","#toc9");
121	PageTop(".link_to_toc10","#toc10");
122
123	}
124
125function PageTop(target,target2){
126	$(function () {
127		$target = $(target);	
128		$target2 = $(target2);	
129		$($target).click(function () {
130			$(this).blur();
131			var targetOffset = $(target2).offset().top;
132
133			$('html,body').animate({ scrollTop: targetOffset }, 'slow');
134
135			return false;
136		});
137	});
138}
139
140//詳細検索&その他アコーディオン
141
142function SearchChange(){
143	$("#b_csr").click(function(){
144	$("#item_sf").slideToggle("300");
145	$(this).toggleClass("on");
146	});
147
148	$("#other_address_csr").click(function(){
149	$("#other_address_sf").slideToggle("300");
150	});
151
152	$("#pay2_csr").click(function(){
153	$("#pay2_sf").slideToggle("300");
154	});
155
156	$("#pay3_csr").click(function(){
157	$("#pay3_sf").slideToggle("300");
158	});
159
160	$("#pay4_csr").click(function(){
161	$("#pay4_sf").slideToggle("300");
162	});
163
164	$("#pay6_csr").click(function(){
165	$("#pay6_sf").slideToggle("300");
166	});
167
168	$("#pay7_csr").click(function(){
169	$("#pay7_sf").slideToggle("300");
170	});
171
172	$("#pay8_csr").click(function(){
173	$("#pay8_sf").slideToggle("300");
174	});
175
176	$("#inquiry_csr_1").click(function(){
177	$("#inquiry_sf_1").slideDown("300");
178	$("#inquiry_sf_2").slideUp("300");
179	$("#inquiry_sf_3").slideUp("300");
180	$("label.tab1_label").css("opacity","0.5");
181	$("label.tab2_label").css("opacity","");
182	});
183
184	$("#inquiry_csr_2").click(function(){
185	$("#inquiry_sf_2").slideDown("300");
186	$("#inquiry_sf_1").slideUp("300");
187	$("#inquiry_sf_3").slideUp("300");
188	$("label.tab1_label").css("opacity","");
189	$("label.tab2_label").css("opacity","0.5");
190	});
191
192	$("#inquiry_csr_3").click(function(){
193	$("#inquiry_sf_3").slideDown("300");
194	$("#inquiry_sf_1").slideUp("300");
195	$("#inquiry_sf_2").slideUp("300");
196	});
197
198    $('select.js-subject-switch').change(function() {
199        $('.tr1,.tr2,.tr3,.tr4,.tr5,.tr6,.tr7').removeClass('invisible');
200        if ($('#subject0').is(':selected')) {
201            $('.tr1,.tr6,.tr7').addClass('invisible');
202        } else if($('#subject1').is(':selected')) {
203            $('.tr1,.tr4,.tr6,.tr7').addClass('invisible');
204        } else if($('#subject2').is(':selected')) {
205            $('.tr4,.tr5,.tr6,.tr7').addClass('invisible');
206        } else if($('#subject3').is(':selected')) {
207            $('.tr1,.tr3,.tr4,.tr7').addClass('invisible');
208        } else if($('#subject4').is(':selected')) {
209            $('.tr1,.tr3,.tr4,.tr5,.tr6').addClass('invisible');
210        } else if($('#subject5').is(':selected')) {
211            $('.tr1,.tr4,.tr6,.tr7').addClass('invisible');
212        } else {
213            $('.tr1,.tr2,.tr3,.tr4,.tr5,.tr6,.tr7').addClass('invisible');
214        }
215    }).trigger("change");
216}
217
218////////
219
220function TitleChange(){
221	$('#hover').find('li').hover(function(){
222	$(this).find('ul.enter').show();
223	}, function(){
224	$(this).find('ul.enter').hide();
225	});
226}
227
228////////
229
230function ItemChange(){
231
232	$("#t_ne").click(function(){
233	$(".neitemlist").fadeIn("normal");
234	$(".pcitemlist").fadeOut("normal");
235	});
236
237	$("#t_pc").click(function(){
238	$(".neitemlist").fadeOut("normal");
239	$(".pcitemlist").fadeIn("normal");
240	});
241
242}
243
244//検索フォームフォーカスでポップアップ(202004不使用)
245$(function(){
246
247    $("span.tooltip").css("opacity","0.9").hide();
248    $(".searchbox .textinp").focus(function(){
249        $("span.tooltip").slideDown("fast");
250    }).blur(function(){
251        $("span.tooltip").slideUp("fast");
252    });
253
254});
255
256//TOPへ戻るボタン 20150519
257$(function(){
258	//ボタン[id:page-top]を出現させるスクロールイベント
259	$(window).scroll(function(){
260		//最上部から現在位置までの距離を取得して、変数[now]に格納
261		var now = $(window).scrollTop();
262
263		//最下部から現在位置までの距離を計算して、変数[under]に格納
264		var under = $('body').height() - (now + $(window).height());
265 
266		//最上部から現在位置までの距離(now)が500以上かつ
267		//最下部から現在位置までの距離(under)が100px以上だったら
268		if(now > 200){
269			//[#page-top]をゆっくりフェードインする
270			$('#page-top').fadeIn('slow');
271		//それ以外だったらフェードアウトする
272		}else{
273			$('#page-top').fadeOut('slow');
274		}
275	});
276 
277	//ボタン(id:move-page-top)のクリックイベント
278	$('#move-page-top').click(function(){
279		//ページトップへ移動する
280		$('html,body').animate({scrollTop:0},'slow');
281	});
282});
283
284$(window).on('load', function() {
285	$('a[href^="#"]').on('click', function() {
286		var speed = 800;
287		var href = $(this).attr("href");
288		var target = $(href == "#" || href == "" ? 'html' : href);
289
290		// ★ targetが有効なときだけJSスクロール
291		if (target.length && target.offset()) {
292			var position = target.offset().top - 110;
293
294			$("html, body").animate({
295				scrollTop: position
296			}, speed, "swing");
297
298			return false; // JSで制御する場合のみキャンセル
299		}
300
301		// ★ それ以外は何もしない(=ブラウザのデフォルト動作)
302	});
303});
304
305//動画ポップアップ
306$(function(){
307	var CookieName = $.cookie('movieshow');// cookieを保存
308	if (CookieName == 'movienone') {
309		$('.js-modal').remove();
310	return false;
311	} else{
312		$('.js-modal-close').on('click',function(){
313			$('.js-modal').fadeOut();
314			return false;
315		});
316		$.cookie('movieshow' , 'movienone', { expires: 14 });
317	}
318});

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.