PageSourceSearch

https://sunmusic-gp.co.jp/js/talent_search.js?v=20240523

js sunmusic-gp.co.jp collected 2026-09-24 21:14:10 UTC 3,946 bytes, 174 lines download raw bytes

1// 検索送信(PC)
2$('input[name="SearchSex"]:radio, input[name="SearchTalentProfile"]:radio, input[name="SearchConsonant"]:radio').change(function(event){
3	event.preventDefault();
4	var form = $(this).parents('form');
5	var action = form.attr('action');
6;
7	action = createSearchAction(action, false);
8	location.href = action;
9
10});
11
12//検索送信(SP)
13$('#SearchTalentProfileSP, #SearchConsonantSP').change(function(event){
14	event.preventDefault();
15	var form = $(this).parents('form');
16	var action = form.attr('action');
17
18	//PC表示のラジオボタンも変更掛ける。
19	profile = $('#SearchTalentProfileSP').val();
20	consonant = $('#SearchConsonantSP').val();
21
22	if(profile != ''){
23		$("input[name='SearchTalentProfile']").val([profile]);
24	}else{
25		$("input[name='SearchTalentProfile']").attr("checked",false);
26	}
27
28	if(consonant != ''){
29		$("input[name='SearchConsonant']").val([consonant]);
30	}else{
31		$("input[name='SearchConsonant']").attr("checked",false);
32	}
33
34
35	action = createSearchAction(action);
36	location.href = action;
37
38});
39
40
41//詳細検索送信
42$('#detailSearchBtn').click(function(event){
43	event.preventDefault();
44	var form = $(this).parents('form');
45	var action = form.attr('action');
46
47	action = createSearchAction(action);
48	location.href = action;
49
50});
51
52//検索条件クリア
53$('#SearchReset').click(function(event){
54	event.preventDefault();
55	var form = $(this).parents('form');
56	var action = form.attr('action');
57
58	//action = createSearchAction(action, true);
59	//全検索
60	location.href = action;
61
62});
63
64
65//50音順ソート
66$('input[name="SearchSort"]:radio').change(function(event){
67	event.preventDefault();
68	var form = $(this).parents('form');
69	var action = form.attr('action');
70
71	action = createSearchAction(action);
72	location.href = action;
73
74});
75
76
77
78function createSearchAction(action){
79
80	//性別区分
81	var sex = $("#sex :checked").val();
82	if(sex != null){
83		action += 'sex:' + sex + '/';
84	}
85	//タレント区分
86	var profile = $("input[name='SearchTalentProfile']:checked").val();
87	if(profile != null){
88		action += 'profile:' + profile + '/';
89	}
90	//子音区分
91	var consonant = $("input[name='SearchConsonant']:checked").val();
92	if(consonant != null){
93		action += 'consonant:' + consonant + '/';
94	}
95
96	//血液型
97	var blood = "";
98	$('input[name="blood[]"]:checked').each(function(){
99		if(blood==""){
100			blood=$(this).attr("value");
101		}else{
102			blood+=":"+$(this).attr("value");
103		}
104	});
105	if(blood!=""){
106		action += 'blood:' + blood + '/';
107	}
108	//出身地
109	var area = "";
110	$('input[name="area[]"]:checked').each(function(){
111		if(area==""){
112			area=$(this).attr("value");
113		}else{
114			area+=":"+$(this).attr("value");
115		}
116	});
117	if(area!=""){
118		action += 'area:' + area + '/';
119	}
120
121	//ジャンル
122	var free_genre = "";
123	$('input[name="free_genre[]"]:checked').each(function(){
124		if(free_genre==""){
125			free_genre=$(this).attr("value");
126		}else{
127			free_genre+=":"+$(this).attr("value");
128		}
129	});
130	if(free_genre!=""){
131		action += 'free_genre:' + free_genre + '/';
132	}
133
134	//身長From
135	var height_from = $("#SearchHeightFrom").val();
136	if(height_from != ""){
137		action += 'height_from:' + height_from + '/';
138	}
139
140	//身長To
141	var height_to = $("#SearchHeightTo").val();
142	if(height_to != ""){
143		action += 'height_to:' + height_to + '/';
144	}
145
146	//å¹´é½¢From
147	var age_from = $("#SearchAgeFrom").val();
148	if(age_from != ""){
149		action += 'age_from:' + age_from + '/';
150	}
151
152	//å¹´é½¢To
153	var age_to = $("#SearchAgeTo").val();
154	if(age_to != ""){
155		action += 'age_to:' + age_to + '/';
156	}
157
158	//フリーワード
159	var free_word = $("#SearchKeywordPc").val();
160	if(free_word != ""){
161		action += 'keyword:' + free_word + '/';
162	}
163
164	//ソート条件
165	var abc_sort = $("input[name='SearchSort']:checked").val();
166	if(abc_sort != null){
167		action += 'abc_sort:' + abc_sort + '/';
168	}else{
169		//チェックが入ってなくても、何かしらで絞り込まれたら50音順で表示する
170		action += 'abc_sort:' + 'on' + '/';
171	}
172
173	return action;
174}

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.