$(function() { /*================================================================ 情報 ================================================================*/ var allList = [ { id: "1685", life: "59.8", url:"index.php?act=staff&id=1685", img:"user_data/10714.jpg", nen:"平成27年式", soukou:"76062", title:"【レ単レ】ダイハツムーブ L赤2624【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1693", life: "68.8", url:"index.php?act=staff&id=1693", img:"user_data/11173.jpg", nen:"平成26年式", soukou:"50021", title:"【レ単楽】ホンダN-WGN G A-PKG2708【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1699", life: "68.8", url:"index.php?act=staff&id=1699", img:"user_data/11104.jpg", nen:"平成26年式", soukou:"55719", title:"【レ単じ】ニッサンデイズ S茶2709【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1701", life: "68.8", url:"index.php?act=staff&id=1701", img:"user_data/11019.jpg", nen:"平成26年式", soukou:"45715", title:"【レ単じ】ニッサンデイズハイウェイスター赤2711", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1702", life: "59.8", url:"index.php?act=staff&id=1702", img:"user_data/10815.jpg", nen:"平成26年式", soukou:"97254", title:"【あ単レ】ダイハツタントL緑2705", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1716", life: "68.8", url:"index.php?act=staff&id=1716", img:"user_data/10931.jpg", nen:"平成26年式", soukou:"67,536", title:"【レ単じ】ニッサンデイズ ハイウェイスター紫2727", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1717", life: "59.8", url:"index.php?act=staff&id=1717", img:"user_data/12454.jpg", nen:"平成25年式", soukou:"44156", title:"【レ単楽】ミツビシekワゴン紫2760【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1719", life: "68.8", url:"index.php?act=staff&id=1719", img:"user_data/10797.jpg", nen:"平成25年式", soukou:"47051", title:"【レ単楽】ミツビシekワゴンM2761【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1724", life: "59.8", url:"index.php?act=staff&id=1724", img:"user_data/10795.jpg", nen:"平成26年式", soukou:"98213", title:"【あ単レ】ダイハツタントL SA黒2728", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1731", life: "59.8", url:"index.php?act=staff&id=1731", img:"user_data/10908.jpg", nen:"平成25年式", soukou:"84,737", title:"【レ単じ】ニッサンデイズ ハイウェイスターJ黒2724", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1733", life: "78.8", url:"index.php?act=staff&id=1733", img:"user_data/10965.jpg", nen:"平成26年式", soukou:"64288", title:"【レ単楽】ホンダN-WGNカスタム G・Aパッケージ青 2729", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1734", life: "68.8", url:"index.php?act=staff&id=1734", img:"user_data/10801.jpg", nen:"平成28年式", soukou:"73461", title:"【レ単レ】ダイハツムーブL黒2740【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1735", life: "68.8", url:"index.php?act=staff&id=1735", img:"user_data/11191.jpg", nen:"平成26年式", soukou:"41179", title:"【あ単楽】スズキラパンショコラX2737", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1738", life: "88.8", url:"index.php?act=staff&id=1738", img:"user_data/11038.jpg", nen:"平成29年式", soukou:"33238", title:"【レ単レ】ダイハツミライースL赤2758【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1742", life: "59.8", url:"index.php?act=staff&id=1742", img:"user_data/10829.jpg", nen:"平成25年式", soukou:"78890", title:"【あ単楽】ラパンショコラGピンク2734", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1744", life: "49.8", url:"index.php?act=staff&id=1744", img:"user_data/10794.jpg", nen:"平成26年式", soukou:"70199", title:"【レ単じ】ホンダN-ONE G Lパッケージピンク2756", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1746", life: "68.8", url:"index.php?act=staff&id=1746", img:"user_data/10802.jpg", nen:"平成25年式", soukou:"41921", title:"【レ単じ】ホンダN-ONE Gピンク2752【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1748", life: "98.8", url:"index.php?act=staff&id=1748", img:"user_data/10857.jpg", nen:"平成29年式", soukou:"74911", title:"【カ単喫】ワゴンRハイブリッドFX白2795", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1752", life: "59.8", url:"index.php?act=staff&id=1752", img:"user_data/10902.jpg", nen:"平成25年式", soukou:"81342", title:"【あ単楽】ラパンショコラG ピンク3139", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1754", life: "73.8", url:"index.php?act=staff&id=1754", img:"user_data/10903.jpg", nen:"平成27年式", soukou:"72015", title:"【あ単レ】ダイハツタントL黄色3251", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1771", life: "68.8", url:"index.php?act=staff&id=1771", img:"user_data/11058.jpg", nen:"平成27年式", soukou:"75229", title:"【レ単じ】ニッサンデイズJ銀2814", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1775", life: "64.8", url:"index.php?act=staff&id=1775", img:"user_data/10841.jpg", nen:"平成26年式", soukou:"79072", title:"【レ単じ】ホンダN-ONE G L-PKG赤2805", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1776", life: "64.8", url:"index.php?act=staff&id=1776", img:"user_data/10817.jpg", nen:"平成26年式", soukou:"121033", title:"【レ単楽】ミツビシekスペースG茶2831", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1780", life: "58.8", url:"index.php?act=staff&id=1780", img:"user_data/10925.jpg", nen:"平成29年式", soukou:"101583", title:"【レ単楽】ミツビシekスペースG青2852", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1796", life: "78.8", url:"index.php?act=staff&id=1796", img:"user_data/11040.jpg", nen:"平成26年式", soukou:"51018", title:"【レDP楽】ニッサンデイズルークスX赤2913", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1800", life: "58.8", url:"index.php?act=staff&id=1800", img:"user_data/10945.jpg", nen:"平成26年式", soukou:"80548", title:"【レ単楽】ホンダN-WGN G・A -PKG青2847", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1802", life: "68.8", url:"index.php?act=staff&id=1802", img:"user_data/10944.jpg", nen:"平成27年式", soukou:"93773", title:"【ツ単楽】デイズルークスアンシャンテピンク2877", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1810", life: "63.8", url:"index.php?act=staff&id=1810", img:"user_data/11034.jpg", nen:"平成26年式", soukou:"36399", title:"【レ単じ】ニッサンデイズピンク2855【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1814", life: "54.8", url:"index.php?act=staff&id=1814", img:"user_data/10898.jpg", nen:"平成26年式", soukou:"87,000*", title:"【レ単じ】ニッサンデイズハイウェイスター黒2876", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1827", life: "58.8", url:"index.php?act=staff&id=1827", img:"user_data/10958.jpg", nen:"平成25年式", soukou:"87706", title:"ステラカスタムR スマートアシスト銀2905", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1831", life: "54.8", url:"index.php?act=staff&id=1831", img:"user_data/10950.jpg", nen:"平成24年式", soukou:"74248", title:"【あ喫じ】スズキワゴンR FX黒2899", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1833", life: "64.8", url:"index.php?act=staff&id=1833", img:"user_data/10930.jpg", nen:"平成25年式", soukou:"92781", title:"【あ単レ】ダイハツタントカスタムRS黒2912", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1851", life: "74.8", url:"index.php?act=staff&id=1851", img:"user_data/12951.jpg", nen:"平成25年式", soukou:"93848", title:"【販3末】N-BOXカスタム G・Lパッケージ青2962", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1856", life: "59.8", url:"index.php?act=staff&id=1856", img:"user_data/11052.jpg", nen:"平成26年式", soukou:"98740", title:"【レ単楽】ホンダN-WGN Gベージュ2935", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1858", life: "73.8", url:"index.php?act=staff&id=1858", img:"user_data/10856.jpg", nen:"平成26年式", soukou:"17099", title:"【レ単じ】ニッサンデイズハイウェイスター紫2931", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1859", life: "69.8", url:"index.php?act=staff&id=1859", img:"user_data/10820.jpg", nen:"平成24年式", soukou:"89500", title:"【レ単じ】ホンダN-BOX G・Lパッケージ白2924", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1860", life: "64.8", url:"index.php?act=staff&id=1860", img:"user_data/10824.jpg", nen:"平成24年式", soukou:"94854", title:"【レ単じ】ホンダN-BOX G・Lパッケージ白2886", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1863", life: "69.8", url:"index.php?act=staff&id=1863", img:"user_data/10922.jpg", nen:"平成25年式", soukou:"99082", title:"【レ単じ】N-BOX G SSパッケージ茶2938", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1866", life: "49.8", url:"index.php?act=staff&id=1866", img:"user_data/11017.jpg", nen:"平成25年式", soukou:"82758", title:"【レ単楽】ミツビシekワゴンG白2926", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1870", life: "59.8", url:"index.php?act=staff&id=1870", img:"user_data/11155.jpg", nen:"平成25年式", soukou:"38453", title:"【レ単じ】ニッサンデイズX2958【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1877", life: "78.8", url:"index.php?act=staff&id=1877", img:"user_data/10929.jpg", nen:"平成29年式", soukou:"96572", title:"【レ単じ】ホンダN-BOX G_SSパッケージ黒2954", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1878", life: "49.8", url:"index.php?act=staff&id=1878", img:"user_data/10923.jpg", nen:"平成26年式", soukou:"79377", title:"【レ単楽】ミツビシekカスタムG紺3129", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1881", life: "49.8", url:"index.php?act=staff&id=1881", img:"user_data/10916.jpg", nen:"平成23年式", soukou:"76585", title:"【あ単レ】ダイハツタントL黒2956", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1895", life: "118.8", url:"index.php?act=staff&id=1895", img:"user_data/10990.jpg", nen:"平成28年式", soukou:"35433", title:"【ツ単レ】ハスラー黄色JスタイルⅡ3154", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1913", life: "128.8", url:"index.php?act=staff&id=1913", img:"user_data/11008.jpg", nen:"平成30年式", soukou:"25517", title:"【レDP楽】デイズルークスボレロ茶3053", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1919", life: "83.8", url:"index.php?act=staff&id=1919", img:"user_data/11014.jpg", nen:"平成27年式", soukou:"55863", title:"【レDP楽】デイズルークスX3135 ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "1923", life: "73.8", url:"index.php?act=staff&id=1923", img:"user_data/11174.jpg", nen:"平成26年式", soukou:"53327", title:"【レDP】ニッサンデイズルークスX茶3052", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1924", life: "128.8", url:"index.php?act=staff&id=1924", img:"user_data/11178.jpg", nen:"平成30年式", soukou:"49716", title:"【ツ単レ】スズキハスラーG黄色3054", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1926", life: "138.8", url:"index.php?act=staff&id=1926", img:"user_data/11016.jpg", nen:"令和2年式", soukou:"62,000", title:"【ツDPじ】スズキスペーシアHV Xアップグレードパッケージ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1933", life: "128.8", url:"index.php?act=staff&id=1933", img:"user_data/11951.jpg", nen:"平成30年", soukou:"22839", title:"【レDP楽】ニッサンデイズルークスX茶3051", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1934", life: "148.8", url:"index.php?act=staff&id=1934", img:"user_data/11066.jpg", nen:"平成29年式", soukou:"8556", title:"【ツDP楽】ニッサンデイズルークスX3159", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1935", life: "148.8", url:"index.php?act=staff&id=1935", img:"user_data/11063.jpg", nen:"令和3年式", soukou:"4143", title:"【ツDPじ】スズキスペーシアG HVミント3056", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "1936", life: "128.8", url:"index.php?act=staff&id=1936", img:"user_data/11064.jpg", nen:"平成29年式", soukou:"46944", title:"【ツDP楽】ニッサンデイズルークスX銀3130", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1938", life: "138.8", url:"index.php?act=staff&id=1938", img:"user_data/11202.jpg", nen:"平成30年式", soukou:"46560", title:"【ツDPじ】スペーシアG HVミント3067", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1939", life: "138.8", url:"index.php?act=staff&id=1939", img:"user_data/11181.jpg", nen:"平成31年式", soukou:"12810", title:"【ツDP楽】ニッサンデイズルークスX赤3064", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1940", life: "158.8", url:"index.php?act=staff&id=1940", img:"user_data/11184.jpg", nen:"令和3年式", soukou:"3773", title:"【ツ単楽】ニッサンルークスX赤3066", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1951", life: "158.8", url:"index.php?act=staff&id=1951", img:"user_data/11081.jpg", nen:"令和3年式", soukou:"1916", title:"【ツ単楽】ニッサンルークスX HV パール", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1956", life: "138.8", url:"index.php?act=staff&id=1956", img:"user_data/11193.jpg", nen:"令和1年式", soukou:"30,000", title:"【ツDP楽】ニッサンデイズルークスS シルバー", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1969", life: "98.8", url:"index.php?act=staff&id=1969", img:"user_data/11090.jpg", nen:"平成26年式", soukou:"51636", title:"【ツ単レ】スズキハスラーXターボ3153", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1974", life: "138.8", url:"index.php?act=staff&id=1974", img:"user_data/11201.jpg", nen:"平成29年式", soukou:"25140", title:"【ツDPじ】スズキスペーシアG HV3134", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1975", life: "88.8", url:"index.php?act=staff&id=1975", img:"user_data/11187.jpg", nen:"平成27年式", soukou:"50761", title:"【ツ単楽】デイズルークスS銀3080", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1978", life: "128.8", url:"index.php?act=staff&id=1978", img:"user_data/11981.jpg", nen:"平成28年式", soukou:"56112", title:"【ツ単楽】ニッサンデイズルークスS銀3065", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1979", life: "128.8", url:"index.php?act=staff&id=1979", img:"user_data/11209.jpg", nen:"令和2年式", soukou:"23405", title:"【ツDPじ】スズキスペーシアG HV3081", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1993", life: "98.8", url:"index.php?act=staff&id=1993", img:"user_data/11144.jpg", nen:"平成27年式", soukou:"59300", title:"【カ単喫】ホンダN-BOX G Lパッケージ3157", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1994", life: "98.8", url:"index.php?act=staff&id=1994", img:"user_data/11145.jpg", nen:"令和1年式", soukou:"45365", title:"【レ単じ】ニッサンデイズS銀3084", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1995", life: "88.8", url:"index.php?act=staff&id=1995", img:"user_data/11153.jpg", nen:"平成29年式", soukou:"25480", title:"【レ単楽】ekワゴンM_e-アシスト白3141", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2009", life: "78.8", url:"index.php?act=staff&id=2009", img:"user_data/11176.jpg", nen:"平成29年式", soukou:"35995", title:"【レ単じ】ニッサンデイズS白3160", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2059", life: "98.8", url:"index.php?act=staff&id=2059", img:"user_data/13132.jpg", nen:"平成29年式", soukou:"33591", title:"【レ単楽】ホンダN-WGN Gアンシンパッケージ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2115", life: "68.8", url:"index.php?act=staff&id=2115", img:"user_data/13205.jpg", nen:"平成27年式", soukou:"8243", title:"【レ単じ】デイズX_Vセレクション銀3267", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2116", life: "88.8", url:"index.php?act=staff&id=2116", img:"user_data/13206.jpg", nen:"平成27年式", soukou:"50300", title:"【ツ単レ】スズキハスラーG青3269", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2117", life: "69.8", url:"index.php?act=staff&id=2117", img:"user_data/13207.jpg", nen:"平成24年式", soukou:"91782", title:"【レ単じ】ホンダN-BOX G白3268", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2118", life: "69.8", url:"index.php?act=staff&id=2118", img:"user_data/13208.jpg", nen:"平成24年式", soukou:"83241", title:"【レ単じ】N-BOX G・Lパッケージ白3265", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2122", life: "69.8", url:"index.php?act=staff&id=2122", img:"user_data/13211.jpg", nen:"平成26年式", soukou:"43361", title:"【レ単楽】ミツビシekスペースE金3280", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2123", life: "94.8", url:"index.php?act=staff&id=2123", img:"user_data/13212.jpg", nen:"平成29年式", soukou:"62610", title:"【レ単楽】EKスペースMe-アシスト銀3266", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2128", life: "78.8", url:"index.php?act=staff&id=2128", img:"user_data/13215.jpg", nen:"平成25年式", soukou:"44522", title:"【レ単】N-BOX+ G・Lパッケージ白3270", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2129", life: "78.8", url:"index.php?act=staff&id=2129", img:"user_data/13216.jpg", nen:"平成25年式", soukou:"60711", title:"【レ単】N-BOX G SSパッケージ3279", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2131", life: "86.8", url:"index.php?act=staff&id=2131", img:"user_data/13218.jpg", nen:"平成26年式", soukou:"82247", title:"【レ単】N-BOXカスタムG・A-PKG銀3281", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2132", life: "108.8", url:"index.php?act=staff&id=2132", img:"user_data/13221.jpg", nen:"平成31年式", soukou:"57127", title:"【レ単】ワゴンRハイブリッドFX茶", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2133", life: "108.8", url:"index.php?act=staff&id=2133", img:"user_data/13220.jpg", nen:"平成31年式", soukou:"53882", title:"【レ単】ワゴンRハイブリッドFX茶", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "2141", life: "108.8", url:"index.php?act=staff&id=2141", img:"user_data/13225.jpg", nen:"平成31年式", soukou:"27791", title:"【レ単】ワゴンRハイブリッドFX黒", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1603", life: "59.8", url:"index.php?act=staff&id=1603", img:"user_data/10102.jpg", nen:"平成25年式", soukou:"59698", title:"【レ単じ】ホンダN-ONE Gピンク2591", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1568", life: "73.8", url:"index.php?act=staff&id=1568", img:"user_data/10061.jpg", nen:"平成26年式", soukou:"26648", title:"【レ単じ】ニッサンデイズS 銀2559【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1566", life: "68.8", url:"index.php?act=staff&id=1566", img:"user_data/10059.jpg", nen:"平成28年式", soukou:"42181", title:"【レ単楽】ミツビシekワゴンM 白2520【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1565", life: "49.8", url:"index.php?act=staff&id=1565", img:"user_data/10058.jpg", nen:"平成28年式", soukou:"100233", title:"【レ単レ】ダイハツ ムーブL SA2銀2532【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1543", life: "49.8", url:"index.php?act=staff&id=1543", img:"user_data/10040.jpg", nen:"平成28年式", soukou:"93224", title:"【レ単レ】ダイハツムーブ 白2546", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1527", life: "68.8", url:"index.php?act=staff&id=1527", img:"user_data/10022.jpg", nen:"平成28年式", soukou:"70140", title:"【レ単レ】ダイハツムーブL SA Ⅱ 白2504", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1521", life: "39.8", url:"index.php?act=staff&id=1521", img:"user_data/10017.jpg", nen:"平成24年式", soukou:"63080", title:"【レ単じ】ホンダN-ONE Gピンク2466", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1517", life: "68.8", url:"index.php?act=staff&id=1517", img:"user_data/10014.jpg", nen:"平成26年式", soukou:"52726", title:"【レ単楽】ホンダN-WGN G A-PKG茶2561", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1514", life: "148.8", url:"index.php?act=staff&id=1514", img:"user_data/10035.jpg", nen:"令和3年式", soukou:"13257", title:"【レ単じ】ニッサンデイズX2464【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1513", life: "68.8", url:"index.php?act=staff&id=1513", img:"user_data/10012.jpg", nen:"平成25年式", soukou:"51147", title:"2⃣ホンダN-ONE G白2444【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1510", life: "98.8", url:"index.php?act=staff&id=1510", img:"user_data/10003.jpg", nen:"平成29年式", soukou:"35393", title:"【カ単喫】スズキワゴンR HV FX2366【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1504", life: "148.8", url:"index.php?act=staff&id=1504", img:"user_data/10008.jpg", nen:"令和3年式", soukou:"11128", title:"【レ単楽】ミツビシekスペースG2458【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1495", life: "49.8", url:"index.php?act=staff&id=1495", img:"user_data/9694.jpg", nen:"平成24年式", soukou:"97611", title:"【あ単レ】ダイハツ タント ピンク2446", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1386", life: "148.8", url:"index.php?act=staff&id=1386", img:"user_data/9584.jpg", nen:"令和3年", soukou:"16235", title:"【レ単楽】ミツビシekワゴン2174", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1366", life: "59.8", url:"index.php?act=staff&id=1366", img:"user_data/9537.jpg", nen:"令和1年式", soukou:"31820", title:"【あ喫レ】スズキアルトL黒2394", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1359", life: "148.8", url:"index.php?act=staff&id=1359", img:"user_data/9428.jpg", nen:"令和3年式", soukou:"17114", title:"【レ単楽】ミツビシekワゴンM白2140【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1306", life: "118.8", url:"index.php?act=staff&id=1306", img:"user_data/9148.jpg", nen:"平成29年式", soukou:"35923", title:"【カ単喫】ダイハツタント銀2141X【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1297", life: "68.8", url:"index.php?act=staff&id=1297", img:"user_data/9099.jpg", nen:"平成27年式", soukou:"66236", title:"【レ単じ】デイズX/エマージェンシーブレーキレス2385", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1292", life: "69.8", url:"index.php?act=staff&id=1292", img:"user_data/9045.jpg", nen:"平成27年式", soukou:"78826", title:"【レ単楽】ホンダN-WGNカスタムGLパッケージ青2568", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1287", life: "68.8", url:"index.php?act=staff&id=1287", img:"user_data/9005.jpg", nen:"平成26年式", soukou:"69399", title:"【レ単レ】ダイハツムーブカスタム2112【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1263", life: "43.8", url:"index.php?act=staff&id=1263", img:"user_data/8721.jpg", nen:"平成26年式", soukou:"76168", title:"ダイハツムーブカスタムXSA2529", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1199", life: "59.8", url:"index.php?act=staff&id=1199", img:"user_data/7940.jpg", nen:"平成27年式", soukou:"72226", title:"【レ単レ】ダイハツムーブL青1948【価格改定】", 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(); });