$(function() { /*================================================================ 情報 ================================================================*/ var allList = [ { id: "1808", life: "38.8", url:"index.php?act=staff&id=1808", img:"user_data/11032.jpg", nen:"平成24年式", soukou:"62401", title:"【あ単じ】キューブ15X銀6526", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1667", life: "48.8", url:"index.php?act=staff&id=1667", img:"user_data/10696.jpg", nen:"平成25年式", soukou:"45669", title:"【レDP楽】ホンダフィットGK3銀6323", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1670", life: "48.8", url:"index.php?act=staff&id=1670", img:"user_data/10699.jpg", nen:"平成26年式", soukou:"83249", title:"【あ単じ】ミツビシミラージュS銀6351", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1709", life: "48.8", url:"index.php?act=staff&id=1709", img:"user_data/10957.jpg", nen:"平成25年式", soukou:"49834", title:"【レDP楽】ホンダフィットGK3銀6471", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1732", life: "48.8", url:"index.php?act=staff&id=1732", img:"user_data/10960.jpg", nen:"平成25年式", soukou:"46475", title:"【レDP楽】ホンダフィットGK3 金6485", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1862", life: "39.8", url:"index.php?act=staff&id=1862", img:"user_data/13563.jpg", nen:"平成23年式", soukou:"97037", title:"【あ単】キューブ15X6561", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1879", life: "48.8", url:"index.php?act=staff&id=1879", img:"user_data/11055.jpg", nen:"平成26年式", soukou:"21942", title:"【あ喫楽】ニッサンノートX水色6563", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1893", life: "78.8", url:"index.php?act=staff&id=1893", img:"user_data/10993.jpg", nen:"平成28年式", soukou:"53088", title:"【あ単喫】ノートX白6598Vセレクション+セーフティⅡ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1901", life: "68.8", url:"index.php?act=staff&id=1901", img:"user_data/11001.jpg", nen:"平成27年式", soukou:"25969", title:"【レDP楽】フィットGK3Fパッケージ青6717", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1925", life: "38.8", url:"index.php?act=staff&id=1925", img:"user_data/13430.jpg", nen:"平成26年式", soukou:"80906", title:"【あ単じ】キューブ青4WD15X6607", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1930", life: "88.8", url:"index.php?act=staff&id=1930", img:"user_data/11188.jpg", nen:"平成28年式", soukou:"49180", title:"【あ単喫】ニッサンノート銀6647", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2064", life: "68.8", url:"index.php?act=staff&id=2064", img:"user_data/13252.jpg", nen:"平成27年式", soukou:"61357", title:"【あ単喫】ニッサンノートXグレー6881", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2073", life: "68.8", url:"index.php?act=staff&id=2073", img:"user_data/13161.jpg", nen:"平成28年式", soukou:"55779", title:"【レDP楽】ホンダフィットGK3赤6860", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2077", life: "58.8", url:"index.php?act=staff&id=2077", img:"user_data/13334.jpg", nen:"平成26年式", soukou:"45000", title:"【レDP楽】ホンダフィットGK3白6897", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2078", life: "58.8", url:"index.php?act=staff&id=2078", img:"user_data/13191.jpg", nen:"平成26年式", soukou:"56043", title:"【レDP楽】ホンダフィットGK3白7006", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2079", life: "78.8", url:"index.php?act=staff&id=2079", img:"user_data/13332.jpg", nen:"平成28年式", soukou:"57217", title:"2⃣ホンダフィットGK3ピンク6872", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2081", life: "58.8", url:"index.php?act=staff&id=2081", img:"user_data/13235.jpg", nen:"平成26年式", soukou:"36607", title:"【レ単】ホンダフィットGK3グレー7210", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2085", life: "78.8", url:"index.php?act=staff&id=2085", img:"user_data/13260.jpg", nen:"平成28年式", soukou:"38011", title:"2⃣ホンダフィットGK3赤6879", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2088", life: "58.8", url:"index.php?act=staff&id=2088", img:"user_data/13257.jpg", nen:"平成26年式", soukou:"9916", title:"2⃣ホンダフィットGK3Fパッケージ銀6913", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2092", life: "68.8", url:"index.php?act=staff&id=2092", img:"user_data/13669.jpg", nen:"平成27年式", soukou:"59157", title:"ホンダフィットGK3GF青6923埼玉", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2100", life: "58.8", url:"index.php?act=staff&id=2100", img:"user_data/13349.jpg", nen:"平成26年式", soukou:"56867", title:"2⃣ホンダフィットGK3黒6936", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2101", life: "78.8", url:"index.php?act=staff&id=2101", img:"user_data/13737.jpg", nen:"平成28年式", soukou:"24038", title:"2⃣ホンダフィットGK3G・Lパッケージ銀6909", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2105", life: "98.8", url:"index.php?act=staff&id=2105", img:"user_data/13335.jpg", nen:"平成30年式", soukou:"56805", title:"ホンダフィットGK3Fパッケージ銀6908", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2114", life: "38.8", url:"index.php?act=staff&id=2114", img:"user_data/13242.jpg", nen:"平成23年式", soukou:"52,664", title:"キューブ6924", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2138", life: "38.8", url:"index.php?act=staff&id=2138", img:"user_data/13358.jpg", nen:"平成23年式", soukou:"71186", title:"【あ単じ】キューブ15Xインディゴプラスプラズマ銀7208", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2139", life: "38.8", url:"index.php?act=staff&id=2139", img:"user_data/13341.jpg", nen:"平成24年式", soukou:"70435", title:"【あ単じ】キューブ15Xインディゴプラスプラズマ茶7137", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2147", life: "38.8", url:"index.php?act=staff&id=2147", img:"user_data/13342.jpg", nen:"平成24年式", soukou:"58433", title:"【あ単じ】ミツビシミラージュM青7098", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2162", life: "58.8", url:"index.php?act=staff&id=2162", img:"user_data/13329.jpg", nen:"平成27年式", soukou:"51050", title:"【あ単じ】キューブ15X茶7097", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2163", life: "58.8", url:"index.php?act=staff&id=2163", img:"user_data/13330.jpg", nen:"平成27年式", soukou:"56980", title:"【あ単じ】キューブ15XVセレクションインディゴプラズマ紺7100", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2167", life: "48.8", url:"index.php?act=staff&id=2167", img:"user_data/13401.jpg", nen:"平成25年式", soukou:"43086", title:"【レDP楽】ホンダフィットGK3銀7083", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2168", life: "68.8", url:"index.php?act=staff&id=2168", img:"user_data/13423.jpg", nen:"平成27年式", soukou:"40519", title:"【レDP楽】ホンダフィットGK3赤7116", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2178", life: "58.8", url:"index.php?act=staff&id=2178", img:"user_data/13331.jpg", nen:"平成27年式", soukou:"59679", title:"【あ単じ】キューブコダワリセレクション茶7101", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2185", life: "38.8", url:"index.php?act=staff&id=2185", img:"user_data/13354.jpg", nen:"平成21年式", soukou:"62749", title:"【あ単じ】キューブ15XVセレクション茶7213", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2186", life: "38.8", url:"index.php?act=staff&id=2186", img:"user_data/13419.jpg", nen:"平成23年式", soukou:"65240", title:"【あ単じ】キューブ15XVセレクション白7226", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2187", life: "38.8", url:"index.php?act=staff&id=2187", img:"user_data/13320.jpg", nen:"平成25年式", soukou:"42318", title:"【あ単じ】キューブ15X青7223", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2188", life: "58.8", url:"index.php?act=staff&id=2188", img:"user_data/13323.jpg", nen:"平成27年式", soukou:"43010", title:"【レDP楽】ホンダフィットGK3銀7263", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2192", life: "58.8", url:"index.php?act=staff&id=2192", img:"user_data/13436.jpg", nen:"平成27年式", soukou:"39150", title:"【あ単じ】ミツビシミラージュS赤7227", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2202", life: "58.8", url:"index.php?act=staff&id=2202", img:"user_data/13312.jpg", nen:"平成26年式", soukou:"56486", title:"【レDP楽】ホンダフィットGK3白7219", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2218", life: "38.8", url:"index.php?act=staff&id=2218", img:"user_data/13455.jpg", nen:"平成25年式", soukou:"46575", title:"【あ単じ】キューブ銀15X7289", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2227", life: "38.8", url:"index.php?act=staff&id=2227", img:"user_data/13356.jpg", nen:"平成24年式", soukou:"62084", title:"【あ単じ】キューブ15XMセレクション茶7209", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2230", life: "38.8", url:"index.php?act=staff&id=2230", img:"user_data/13551.jpg", nen:"平成24年式", soukou:"31461", title:"【あ単じ】ミツビシミラージュG白7268", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2231", life: "58.8", url:"index.php?act=staff&id=2231", img:"user_data/13383.jpg", nen:"平成27年式", soukou:"49446", title:"【あ単じ】ミツビシミラージュG青", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2232", life: "48.8", url:"index.php?act=staff&id=2232", img:"user_data/13529.jpg", nen:"平成25年式", soukou:"55440", title:"2⃣ホンダフィットGK3白7269", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2263", life: "78.8", url:"index.php?act=staff&id=2263", img:"user_data/13483.jpg", nen:"平成29年式", soukou:"72187", title:"【あ単じ】キューブ15Xベージュ7309", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2265", life: "38.8", url:"index.php?act=staff&id=2265", img:"user_data/13518.jpg", nen:"平成25年式", soukou:"36509", title:"【あ単じ】ミツビシミラージュM黒7357", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2289", life: "38.8", url:"index.php?act=staff&id=2289", img:"user_data/13549.jpg", nen:"平成26年式", soukou:"64413", title:"【あ単】キューブ15X白7365", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2290", life: "38.8", url:"index.php?act=staff&id=2290", img:"user_data/13633.jpg", nen:"平成24年式", soukou:"46615", title:"【あ単】キューブ15X黒7344", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2297", life: "58.8", url:"index.php?act=staff&id=2297", img:"user_data/13594.jpg", nen:"平成27年式", soukou:"45969", title:"【あ単】トヨタ ポルテ7460Fアラモードドゥ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2304", life: "48.8", url:"index.php?act=staff&id=2304", img:"user_data/14182.jpg", nen:"平成26年式", soukou:"68964", title:"【あ単じ】ミツビシミラージュG黒7397", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2305", life: "48.8", url:"index.php?act=staff&id=2305", img:"user_data/13637.jpg", nen:"平成26年式", soukou:"69942", title:"【あ単じ】ミツビシミラージュM銀7450", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2306", life: "88.8", url:"index.php?act=staff&id=2306", img:"user_data/13646.jpg", nen:"平成29年式", soukou:"30605", title:"【レDP楽】ホンダフィットGK3銀7395", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2323", life: "58.8", url:"index.php?act=staff&id=2323", img:"user_data/13554.jpg", nen:"平成27年式", soukou:"34187", title:"【あ単じ】ミツビシミラージュM銀7458", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2324", life: "38.8", url:"index.php?act=staff&id=2324", img:"user_data/13650.jpg", nen:"平成24年式", soukou:"52106", title:"【あ単】キューブ15X茶7438", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2328", life: "78.8", url:"index.php?act=staff&id=2328", img:"user_data/13627.jpg", nen:"平成28年式", soukou:"41251", title:"【レDP楽】フィットGK3Fパッケージ青7428", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2330", life: "58.8", url:"index.php?act=staff&id=2330", img:"user_data/13665.jpg", nen:"平成26年式", soukou:"54279", title:"【レDP楽】フィットGK3銀7429Fパッケージ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2334", life: "58.8", url:"index.php?act=staff&id=2334", img:"user_data/13643.jpg", nen:"平成26年式", soukou:"54053", title:"【レDP楽】フィットGK5青15X7431", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2339", life: "38.8", url:"index.php?act=staff&id=2339", img:"user_data/13580.jpg", nen:"平成24年式", soukou:"80502", title:"【あ単】キューブ15Xインディゴプラスプラズマ茶", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2349", life: "38.8", url:"index.php?act=staff&id=2349", img:"user_data/13606.jpg", nen:"平成20年式", soukou:"84000", title:"【あ単】キューブ15X赤", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2350", life: "38.8", url:"index.php?act=staff&id=2350", img:"user_data/13609.jpg", nen:"平成23年式", soukou:"94373", title:"【あ単】キューブ15XMセレクション白7604", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2351", life: "38.8", url:"index.php?act=staff&id=2351", img:"user_data/13610.jpg", nen:"平成22年式", soukou:"96271", title:"【あ単】キューブ15XMセレクション茶", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2352", life: "38.8", url:"index.php?act=staff&id=2352", img:"user_data/13608.jpg", nen:"平成24年式", soukou:"48900", title:"【あ単】キューブ15Xインディゴプラズマ茶7605", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2357", life: "38.8", url:"index.php?act=staff&id=2357", img:"user_data/13582.jpg", nen:"平成23年式", soukou:"75177", title:"【あ単】キューブ15Xパーティーレッドセレクション茶", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2358", life: "38.8", url:"index.php?act=staff&id=2358", img:"user_data/13605.jpg", nen:"平成26年式", soukou:"74948", title:"【あ単】キューブ15Xロルブーセレクション茶", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2359", life: "38.8", url:"index.php?act=staff&id=2359", img:"user_data/13657.jpg", nen:"平成23年式", soukou:"80499", title:"【あ単】キューブ15XVセレクション白", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2362", life: "38.8", url:"index.php?act=staff&id=2362", img:"user_data/13613.jpg", nen:"平成23年式", soukou:"78967", title:"【あ単】キューブ15XMセレクション白", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2363", life: "78.8", url:"index.php?act=staff&id=2363", img:"user_data/13611.jpg", nen:"平成27年式", soukou:"55960", title:"【あ単】キューブ15X白7598", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2364", life: "38.8", url:"index.php?act=staff&id=2364", img:"user_data/13607.jpg", nen:"平成26年式", soukou:"39361", title:"【あ単】キューブ15X白7599", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2365", life: "38.8", url:"index.php?act=staff&id=2365", img:"user_data/13662.jpg", nen:"平成24年式", soukou:"62088", title:"【あ単】キューブ15Xインディゴプラスプラズマ茶", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2368", life: "38.8", url:"index.php?act=staff&id=2368", img:"user_data/13604.jpg", nen:"平成24年式", soukou:"73948", title:"【あ単】キューブ15Xインディゴプラスプラズマ茶", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2369", life: "38.8", url:"index.php?act=staff&id=2369", img:"user_data/13713.jpg", nen:"平成24年式", soukou:"89500", title:"【あ単】キューブ15X7697白", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2370", life: "38.8", url:"index.php?act=staff&id=2370", img:"user_data/13714.jpg", nen:"平成22年式", soukou:"87784", title:"【あ単】キューブ15XVセレクション緑", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2372", life: "38.8", url:"index.php?act=staff&id=2372", img:"user_data/13597.jpg", nen:"平成22年式", soukou:"73303", title:"【あ単】キューブ15XMセレクショングレー7712", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2373", life: "38.8", url:"index.php?act=staff&id=2373", img:"user_data/13603.jpg", nen:"平成22年式", soukou:"62108", title:"【あ単】キューブ15XMセレクション白7711", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2375", life: "38.8", url:"index.php?act=staff&id=2375", img:"user_data/13645.jpg", nen:"平成23年式", soukou:"78915", title:"【あ単】キューブ15Xインディゴプラスプラズマ茶", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2376", life: "38.8", url:"index.php?act=staff&id=2376", img:"user_data/13596.jpg", nen:"平成23年式", soukou:"81233", title:"【あ単】キューブ15Xパーティーレッドセレクション白7603", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2377", life: "38.8", url:"index.php?act=staff&id=2377", img:"user_data/13673.jpg", nen:"平成24年式", soukou:"84571", title:"【あ単】キューブ15X7699Vセレクション茶", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2378", life: "38.8", url:"index.php?act=staff&id=2378", img:"user_data/13672.jpg", nen:"平成25年式", soukou:"58299", title:"【あ単】ミツビシミラージュG赤7609", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2379", life: "48.8", url:"index.php?act=staff&id=2379", img:"user_data/13659.jpg", nen:"平成26年式", soukou:"85684", title:"【あ単】ミツビシミラージュG赤", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2381", life: "38.8", url:"index.php?act=staff&id=2381", img:"user_data/13655.jpg", nen:"平成22年式", soukou:"80052", title:"【あ単】キューブ15Xブルー", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2396", life: "38.8", url:"index.php?act=staff&id=2396", img:"user_data/13712.jpg", nen:"平成24年式", soukou:"84559", title:"【あ単】キューブ15X7698インディゴプラスプラズマ茶", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2416", life: "38.8", url:"index.php?act=staff&id=2416", img:"user_data/13701.jpg", nen:"平成22年式", soukou:"48821", title:"【あ単】キューブ15XMセレクション", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2421", life: "38.8", url:"index.php?act=staff&id=2421", img:"user_data/13699.jpg", nen:"平成25年式", soukou:"78619", title:"【あ単】キューブ15Xブロンズ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2422", life: "68.8", url:"index.php?act=staff&id=2422", img:"user_data/13700.jpg", nen:"平成28年式", soukou:"62658", title:"【あ単】キューブ15Xグレー7714", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2425", life: "38.8", url:"index.php?act=staff&id=2425", img:"user_data/13729.jpg", nen:"平成24年式", soukou:"71730", title:"【あ単じ】キューブ15Xインディゴプラスプラズマ白", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2463", life: "38.8", url:"index.php?act=staff&id=2463", img:"user_data/13757.jpg", nen:"平成25年式", soukou:"64904", title:"【あ単】キューブ15X赤7692", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2490", life: "88.8", url:"index.php?act=staff&id=2490", img:"user_data/13855.jpg", nen:"平成30年式", soukou:"88248", title:"【あ単】キューブ15X白", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2491", life: "88.8", url:"index.php?act=staff&id=2491", img:"user_data/13858.jpg", nen:"平成30年式", soukou:"85367", title:"【あ単】キューブ15X白7713", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2492", life: "88.8", url:"index.php?act=staff&id=2492", img:"user_data/13857.jpg", nen:"平成30年式", soukou:"87758", title:"【あ単】キューブ15X白", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2493", life: "88.8", url:"index.php?act=staff&id=2493", img:"user_data/13856.jpg", nen:"平成30年式", soukou:"78717", title:"【あ単】キューブ15X白", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1642", life: "29.8", url:"index.php?act=staff&id=1642", img:"user_data/10681.jpg", nen:"平成24年式", soukou:"94404", title:"ミラージュM6291", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1601", life: "38.8", url:"index.php?act=staff&id=1601", img:"user_data/10110.jpg", nen:"平成24年式", soukou:"24,406", title:"ミラージュG6141", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1589", life: "58.8", url:"index.php?act=staff&id=1589", img:"user_data/10079.jpg", nen:"平成26年式", soukou:"33509", title:"【レ単楽】ホンダフィットGK3銀6114", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1548", life: "38.8", url:"index.php?act=staff&id=1548", img:"user_data/10044.jpg", nen:"平成25年式", soukou:"32748", title:"ミラージュM6144", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1541", life: "38.8", url:"index.php?act=staff&id=1541", img:"user_data/10037.jpg", nen:"平成25年式", soukou:"68465", title:"ミラージュG6051", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1540", life: "38.8", url:"index.php?act=staff&id=1540", img:"user_data/10036.jpg", nen:"平成25年式", soukou:"64220", title:"ミラージュG6151", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1528", life: "58.8", url:"index.php?act=staff&id=1528", img:"user_data/10032.jpg", nen:"平成27年式", soukou:"90853", title:"【あ単じ】ミツビシミラージュGグレー6148", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1390", life: "44.8", url:"index.php?act=staff&id=1390", img:"user_data/9590.jpg", nen:"平成24年式", soukou:"54,334", title:"ミラージュG6428", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1338", life: "38.8", url:"index.php?act=staff&id=1338", img:"user_data/9327.jpg", nen:"平成25年式", soukou:"67,006", title:"ミラージュG5792", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1204", life: "78.8", url:"index.php?act=staff&id=1204", img:"user_data/8230.jpg", nen:"平成28年式", soukou:"71954", title:"【あ単喫】ニッサンノートXグレー5706", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1203", life: "78.8", url:"index.php?act=staff&id=1203", img:"user_data/8224.jpg", nen:"平成28年式", soukou:"73059", title:"【あ単喫】ニッサンノート白X5707", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1111", life: "29.8", url:"index.php?act=staff&id=1111", img:"user_data/7598.jpg", nen:"平成23年式", soukou:"79990", title:"アトレーワゴン スローパー白3252", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2397", life: "38.8", url:"index.php?act=staff&id=2397", img:"./img/nophoto.png", nen:"平成22年式", soukou:"81078", title:"【あ単】キューブ15XMセレクショングレー", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2405", life: "38.8", url:"index.php?act=staff&id=2405", img:"./img/nophoto.png", nen:"平成22年式", soukou:"93460", title:"【あ単】キューブ15XMセレクション白", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2408", life: "38.8", url:"index.php?act=staff&id=2408", img:"./img/nophoto.png", nen:"平成24年式", soukou:"84167", title:"【あ単】キューブ15X黒インディゴプラスプラズマ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, ]; /*================================================================ スクリプトはじまり ================================================================*/ function init() { //イベント登録 $(".filter_life select").on("change", onFilterChange); $(".filter_tag input").on("change", onFilterChange); $(".filter_keyword button").on("click", onFilterChange); //最初は全て出力 refleshHtml(allList); } /*================================================================ HTML出力 ================================================================*/ function refleshHtml(list) { var outputHtml = ''; //出力する内容をoutputHtmlに格納 if (list.length > 0) { _.each(list, function(line, i) { outputHtml += '

' + line.title + '

'; outputHtml += '' + line.title + ''; outputHtml += '' + line.new + '' + line.sold + ''; outputHtml += '

価格 ' + line.life + '万円

'; outputHtml += '

年式: ' + line.nen + '

'; outputHtml += '

走行: 約 ' + line.soukou + 'km

'; outputHtml += '
'; }); } else { outputHtml += '

条件に当てはまる車を検索できませんでした。

'; } //HTML出力(フェードインアニメーションつき) $('.productArea').html(outputHtml); $('.productArea .product').css({opacity: 0}).each(function(i){$(this).delay(100 * i).animate({opacity:1}, 300); }); //検索件数表示 $('.productCntArea').html('

' + allList.length + '件中' + list.length + '件を表示しています。

'); } /*================================================================ 絞り込み条件を変更した時 ================================================================*/ function onFilterChange(e) { var filterFncs = []; var result = []; //セレクトボックスの値を引数に指定した関数filterByLifeをfilterFuncs配列に格納 filterFncs.push( function(list) { return filterByLife(list, $('.filter_life select').val()); } ); //チェックボックスの値を引数に指定した関数filterByTagをfilterFuncs配列に格納 filterFncs.push( function(list) { return filterByTag(list, $('.filter_tag input:checked')); } ); //キーワードの値を引数に指定した関数filterByKeywordをfilterFuncs配列に格納 filterFncs.push( function(list) { return filterByKeyword(list, _.escape($('.filter_keyword input').val())); } ); //FilterFuncs配列内の関数をバケツリレーみたいに1つずつ実行して結果をresult配列に格納 result = _.reduce(filterFncs, function(list, fnc) { return fnc(list); }, allList); //絞り込んだ結果を出力 refleshHtml(result); } /*================================================================ 絞り込み[1] セレクトボックス絞り込み関数 ================================================================*/ function filterByLife(list, value) { //絞り込み指定がない場合はリターン if (value == "") { return list; } //選択したセレクトボックスとlifeがマッチするかでフィルタリング return _.filter(list, function(item) { switch (value) { case '1': return item.life <= 10; case '2': return 10 < item.life && item.life <= 20; case '3': return 20 < item.life && item.life <= 30; case '4': return 30 < item.life && item.life <= 40; case '5': return 40 < item.life && item.life <= 50; case '6': return 50 < item.life; } }); } /*================================================================ 絞り込み[2] チェックボックス絞り込み関数 ================================================================*/ function filterByTag(list, value) { //絞り込み指定がない場合はリターン if (value.length == 0) { return list; } //選択した属性(チェックボックス)とtagがマッチするかでフィルタリング return _.filter(list, function(item) { var isMatch = false; //配列同士の比較 _.each(value, function(chkItem, i) { _.each(item.tag, function(tagItem, i) { if (tagItem === $(chkItem).val()) { isMatch = true; } }); }); return isMatch; }); } /*================================================================ 絞り込み[3] テキストボックス絞り込み関数 ================================================================*/ function filterByKeyword(list, value) { //絞り込み指定がない場合はリターン if (value == "") { return list; } //検索キーワードを配列に格納(スペースがある場合は複数格納) var freeAry = [];  var val = value.replace(/ /g, " "); searchAry = val.split(" "); //入力したキーワードがtitleもしくdescriptionにマッチするかでフィルタリング return _.filter(list, function(item) { var isMatch = false; _.each(searchAry, function(data, i) { if (item.title.indexOf(data) != -1 || item.description.indexOf(data) != -1) { isMatch = true; } }); return isMatch; }); } /*================================================================ スクリプトはじめ ================================================================*/ init(); });