PageSourceSearch

https://nakatahiroaki.com/js/search-tool-dragoncity1.js

js nakatahiroaki.com collected 2026-10-04 11:47:06 UTC 6,300 bytes, 215 lines download raw bytes

1
2//move_to_page(1);
3
4$(document).ready(function(){
5
6
7   // ページロード時 //
8   move_to_page(1);
9
10   // ソートボタン //
11   //$('.sort_condition').live("click",function(e){
12   $('.sort_condition').click(function(){
13       $(".fixed_condition[name='sort_order']").val($(this).attr("condition"));
14       move_to_page(1);
15   });
16
17
18});
19
20
21function move_to_page(page){
22
23    //////////////////
24    // 検索条件取得 //
25    //////////////////
26
27    var post_param = {};
28
29    // page //
30    post_param["page"]=page;
31
32    // pc sp(スマホ)種別 //
33    var device = "";
34    $(".fixed_condition[name='device']").each(function(){
35      if($(this).val().length > 0){
36         device = $(this).val();
37      }
38    });
39    post_param["device"]=device;
40
41
42    // キャッシュ利用可否 //
43    var use_cache=$(".fixed_condition[name='use_cache']").val();
44    post_param["use_cache"]=use_cache;
45    //alert("use_cache="+use_cache);
46
47    // 業者(or) //
48    var company_id_arr = new Array();
49    $(".fixed_condition[name='company_id']").each(function(){
50      if($(this).val().length > 0){
51         if($(this).attr("on_off")==1)
52          company_id_arr.push($(this).val());
53      }
54    });
55    var company_ids = company_id_arr.join();
56    post_param["company_ids"]=company_ids;
57    //alert("company_ids="+company_ids);
58
59    // 検索条件(or) //
60    var or_cond_arr = new Array();
61    $(".fixed_condition[name='or_point']").each(function(){
62      if($(this).val().length > 0){
63         if($(this).attr("on_off")==1)
64          or_cond_arr.push($(this).val());
65      }
66    });
67    var or_conds = or_cond_arr.join();
68    post_param["or_conds"]=or_conds;
69    //alert("or_conds="+or_conds);
70
71    // 検索条件(and) //
72    var and_cond_arr = new Array();
73    $(".fixed_condition[name='and_point']").each(function(){
74      if($(this).val().length > 0){
75         if($(this).attr("on_off")==1)
76          and_cond_arr.push($(this).val());
77      }
78    });
79    var and_conds = and_cond_arr.join();
80    post_param["and_conds"]=and_conds;
81    //alert("and_conds="+and_conds);
82
83    // エリア(or) //
84    var area_arr = new Array();
85    $(".fixed_condition[name='area']").each(function(){
86      if($(this).val().length > 0){
87         if($(this).attr("on_off")==1)
88          area_arr.push($(this).val());
89      }
90    });
91    var areas = area_arr.join();
92    post_param["areas"]=areas;
93    //alert("areas="+areas);
94
95    // 日程(or) //
96    var timing_arr = new Array();
97    $(".fixed_condition[name='timing']").each(function(){
98      if($(this).val().length > 0){
99         if($(this).attr("on_off")==1)
100          timing_arr.push($(this).val());
101      }
102    });
103    var timings = timing_arr.join();
104    post_param["timings"]=timings;
105    //alert("timings="+timings);
106
107    // 相手の年齢層 //
108    var partner_age_arr = new Array();
109    $(".fixed_condition[name='partner_age']").each(function(){
110      if($(this).val().length > 0){
111         if($(this).attr("on_off")==1)
112          partner_age_arr.push($(this).val());
113      }
114    });
115    var partner_ages = partner_age_arr.join();
116    post_param["partner_ages"]=partner_ages;
117    //alert("partner_ages="+partner_ages);
118
119    // 自分の性別 //
120    var mysex = '';
121    mysex = $(".fixed_condition[name='mysex']").val();
122    post_param["mysex"]=mysex;
123    //alert("mysex="+mysex);
124
125    // 自分の年齢層 //
126    var myage='';
127    $(".fixed_condition[name='myage']").each(function(){
128       myage = $(this).val();
129    });
130    post_param["myage"]=myage;
131    //alert("myage="+myage);
132
133    var myage_from='';
134    $(".fixed_condition[name='myage_from']").each(function(){
135       myage_from = $(this).val();
136    });
137    post_param["myage_from"]=myage_from;
138    //alert("myage_from="+myage_from);
139
140    var myage_to='';
141    $(".fixed_condition[name='myage_to']").each(function(){
142       myage_to = $(this).val();
143    });
144    post_param["myage_to"]=myage_to;
145    //alert("myage_to="+myage_to);
146
147    // ソート順 //
148    var sort_order = "";
149    $(".fixed_condition[name='sort_order']").each(function(){
150       sort_order = $(this).val();
151    });
152    post_param["sort_order"]=sort_order;
153    //alert("sort_order="+sort_order);
154
155    // 開始日指定 2014.06.25追加 //
156
157    var future_n_day = "";
158    $(".fixed_condition[name='future_n_day']").each(function(){
159       future_n_day = $(this).val();
160    });
161    post_param["future_n_day"]=future_n_day;
162    //alert("future_n_day="+future_n_day);
163
164    //////////////////
165    // パーティ検索 //
166    //////////////////
167
168    myLoading(); // 検索中
169
170    $.post(
171       "/jq-tools-search-dragoncity1.php",
172        post_param,
173        function(data, status) {
174
175            EndmyLoading(); // 検索終了
176//alert(data);
177            var res = JSON.parse(data);
178            // パーティーリスト表示
179            $('#party_list_area').html(res["buff"]);
180            //var p = $("#party_list_area").offset().top -500;
181            //$('html,body').animate({ scrollTop: p }, 'fast');
182
183            // 2014.06.26 click時の操作追加 //
184            $('.Deta a').click(function(){
185               //alert("clicked1");
186               $(document.body).append('<img src="http://b90.yahoo.co.jp/c?account_id=0MCznz8OLDWRK_1VKIRw&transaction_id=&amount=" width="1" height="1" border="1" />');
187               // 自作カウントアップURLの呼び出し
188               //alert("clicked2");
189            });
190        },
191        "html");
192        // -------------------------------- //
193        // 2014.06.25 future_n_day引数追加  //
194        // -------------------------------- //
195
196    return false;
197
198}
199
200function myLoading() {
201
202   var img = new Image();
203   //img.src="/images/now_loading.gif";
204   img.src="/img/now_loading.gif";
205
206   var left = Math.floor(($(window).width() - img.width) / 2);
207   var top = Math.floor(($(window).height() - img.height) / 2) + $(window).scrollTop();
208
209   $(document.body).append("<div id=\"loading\" style=\"position:absolute; left:" + left + "px; top:" + top + "px;\"></div>");
210   $("#loading").append(img);
211
212}
213function EndmyLoading() {
214    $("#loading").remove();
215}

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.