$(function() { /*================================================================ 情報 ================================================================*/ var allList = [ { id: "643", life: "39", url:"index.php?act=staff&id=643", img:"user_data/4438.jpg", nen:"平成23年式", soukou:"150864", title:"フィットHV赤4705 ホンダ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "645", life: "78", url:"index.php?act=staff&id=645", img:"user_data/4436.jpg", nen:"平成24年式", soukou:"134808", title:"アクア青4707 トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "928", life: "クリック", url:"index.php?act=staff&id=928", img:"user_data/6600.jpg", nen:"🉐価格", soukou:"🉐価格", title:"貴方をまもる!!ドライブレコーダー 1/10 80個 再入荷♪", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "927", life: "ここクリ", url:"index.php?act=staff&id=927", img:"user_data/6599.jpg", nen:"🉐価格", soukou:"🉐価格", title:"パイオニアcarrozzeriaDEH-4400", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "926", life: "クリック", url:"index.php?act=staff&id=926", img:"user_data/6598.jpg", nen:"🉐価格", soukou:"🉐価格", title:"KenwoodドライブレコーダーDRV-MR740", sold:"", new:"", tag: ["新着","","","AT","売り切れ"], description: "tesut" }, { id: "925", life: "クリック", url:"index.php?act=staff&id=925", img:"user_data/6597.jpg", nen:"🉐価格", soukou:"🉐価格", title:"WATEXドライブレコーダーDVR-2CAM-R", sold:"", new:"", tag: ["新着","","","AT","売り切れ"], description: "tesut" }, { id: "924", life: "ここクリ", url:"index.php?act=staff&id=924", img:"user_data/6596.jpg", nen:"🉐価格", soukou:"🉐価格", title:"YUPITERU ドライブレコーダー DRY-ST3000c", sold:"", new:"", tag: ["新着","","","AT","売り切れ"], description: "tesut" }, { id: "923", life: "ここクリ", url:"index.php?act=staff&id=923", img:"user_data/6595.jpg", nen:"🉐価格", soukou:"🉐価格", title:"KenwoodドライブレコーダーDRV-240", sold:"", new:"", tag: ["新着","","","AT","売り切れ"], description: "tesut" }, { id: "829", life: "59", url:"index.php?act=staff&id=829", img:"user_data/5782.jpg", nen:"平成24年式", soukou:"154000", title:"シャトルHV青5137 ホンダ 仕入先→関西", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "820", life: "68", url:"index.php?act=staff&id=820", img:"user_data/5707.jpg", nen:"平成24年式", soukou:"123180", title:"ノート紫5129 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "802", life: "66", url:"index.php?act=staff&id=802", img:"user_data/5543.jpg", nen:"平成26年式", soukou:"121269", title:"ノート青5100 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "799", life: "69", url:"index.php?act=staff&id=799", img:"user_data/5540.jpg", nen:"平成24年式", soukou:"116892", title:"キューブ茶5099 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "785", life: "78", url:"index.php?act=staff&id=785", img:"user_data/4933.jpg", nen:"平成25年式", soukou:"125555", title:"ラクティス福祉5041 トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "764", life: "59", url:"index.php?act=staff&id=764", img:"user_data/4914.jpg", nen:"平成21年式", soukou:"117890", title:"ウィッシュ赤632 トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "762", life: "59", url:"index.php?act=staff&id=762", img:"user_data/4923.jpg", nen:"平成23年式", soukou:"126830", title:"キューブ白4955 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "755", life: "69", url:"index.php?act=staff&id=755", img:"user_data/4910.jpg", nen:"平成25年式", soukou:"121644", title:"ノート銀5028 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "752", life: "29", url:"index.php?act=staff&id=752", img:"user_data/4906.jpg", nen:"平成20年式", soukou:"108280", title:"フリード銀4970 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "748", life: "39", url:"index.php?act=staff&id=748", img:"user_data/4902.jpg", nen:"平成22年式", soukou:"129558", title:"セレナ銀637 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "747", life: "59", url:"index.php?act=staff&id=747", img:"user_data/4901.jpg", nen:"平成21年式", soukou:"131957", title:"ウィッシュ黒636 トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "736", life: "59", url:"index.php?act=staff&id=736", img:"user_data/4892.jpg", nen:"平成20年式", soukou:"158117", title:"デリカ白614 ミツビシ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "733", life: "39", url:"index.php?act=staff&id=733", img:"user_data/4889.jpg", nen:"平成22年式", soukou:"107026", title:"セレナ銀4888 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "722", life: "59", url:"index.php?act=staff&id=722", img:"user_data/4885.jpg", nen:"平成23年式", soukou:"162331", title:"セレナ紫609 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "718", life: "59", url:"index.php?act=staff&id=718", img:"user_data/4853.jpg", nen:"平成21年式", soukou:"144992", title:"ウィッシュグレー4835トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "706", life: "59", url:"index.php?act=staff&id=706", img:"user_data/4810.jpg", nen:"平成24年式", soukou:"113488", title:"ヴィッツ銀4802 トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "694", life: "19", url:"index.php?act=staff&id=694", img:"user_data/4800.jpg", nen:"平成18年式", soukou:"72314", title:"MPVワイン601 マツダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "686", life: "108", url:"index.php?act=staff&id=686", img:"user_data/4729.jpg", nen:"平成18年式", soukou:"65443", title:"レクサスHV紫577 GS450h", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "675", life: "19", url:"index.php?act=staff&id=675", img:"user_data/4690.jpg", nen:"平成20年式", soukou:"96407", title:"デミオグレー4711 マツダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "673", life: "108", url:"index.php?act=staff&id=673", img:"user_data/4778.jpg", nen:"平成18年式", soukou:"157346", title:"レクサスHV黒799GS450h", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "667", life: "78", url:"index.php?act=staff&id=667", img:"user_data/4514.jpg", nen:"平成22年式", soukou:"139779", title:"ステップワゴン紫4728ホンダ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "650", life: "29", url:"index.php?act=staff&id=650", img:"user_data/4476.jpg", nen:"平成25年式", soukou:"154400", title:"ヴィッツ水色4708 トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "635", life: "9", url:"index.php?act=staff&id=635", img:"user_data/4416.jpg", nen:"平成19年式", soukou:"90973", title:"キューブ白4767 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "634", life: "19", url:"index.php?act=staff&id=634", img:"user_data/4415.jpg", nen:"平成21年式", soukou:"110934", title:"パッソセッテ黒4769 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "627", life: "29", url:"index.php?act=staff&id=627", img:"user_data/4388.jpg", nen:"平成19年式", soukou:"90081", title:"セレナ白562 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "625", life: "19", url:"index.php?act=staff&id=625", img:"user_data/4403.jpg", nen:"平成20年式", soukou:"111807", title:"ラクティス銀4872 トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "620", life: "19", url:"index.php?act=staff&id=620", img:"user_data/4372.jpg", nen:"平成21年式", soukou:"89142", title:"デミオ紫4821 マツダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "605", life: "19", url:"index.php?act=staff&id=605", img:"user_data/4210.jpg", nen:"平成21年式", soukou:"87000", title:"ノートピンク4664 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "600", life: "9", url:"index.php?act=staff&id=600", img:"user_data/4049.jpg", nen:"平成19年式", soukou:"60450", title:"ベルタ銀4766 トヨタ", sold:"", new:"", tag: ["新着","","","AT","売り切れ"], description: "tesut" }, { id: "596", life: "39", url:"index.php?act=staff&id=596", img:"user_data/4002.jpg", nen:"平成24年式", soukou:"154915", title:"フィットHV緑4639 ホンダ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "591", life: "39", url:"index.php?act=staff&id=591", img:"user_data/3902.jpg", nen:"平成23年式", soukou:"130600", title:"ソリオ黒4627 スズキ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "583", life: "29", url:"index.php?act=staff&id=583", img:"user_data/3860.jpg", nen:"平成22年式", soukou:"97413", title:"ノート銀4890 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "582", life: "19", url:"index.php?act=staff&id=582", img:"user_data/3741.jpg", nen:"平成21年式", soukou:"61200", title:"パッソ赤4652 トヨタ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "571", life: "49", url:"index.php?act=staff&id=571", img:"user_data/3737.jpg", nen:"平成23年式", soukou:"133194", title:"パッソ白4636 トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "567", life: "29", url:"index.php?act=staff&id=567", img:"user_data/3595.jpg", nen:"平成22年式", soukou:"124485", title:"ノート茶4891 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "564", life: "49", url:"index.php?act=staff&id=564", img:"user_data/3836.jpg", nen:"平成23年式", soukou:"113300", title:"マーチ黒4615 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "563", life: "78", url:"index.php?act=staff&id=563", img:"user_data/3702.jpg", nen:"平成25年式", soukou:"105673", title:"ノート白4593 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "560", life: "89", url:"index.php?act=staff&id=560", img:"user_data/3710.jpg", nen:"平成22年式", soukou:"134098", title:"ステップワゴン白4574ホンダ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "552", life: "19", url:"index.php?act=staff&id=552", img:"user_data/3799.jpg", nen:"平成21年式", soukou:"82718", title:"フィットベージュ4598ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "551", life: "29", url:"index.php?act=staff&id=551", img:"user_data/3726.jpg", nen:"平成23年式", soukou:"133818", title:"モコ茶1520 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "536", life: "19", url:"index.php?act=staff&id=536", img:"user_data/3798.jpg", nen:"平成22年式", soukou:"82245", title:"コルト水色4541 ミツビシ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "525", life: "29", url:"index.php?act=staff&id=525", img:"user_data/3676.jpg", nen:"平成24年式", soukou:"134145", title:"スペイド銀4448 トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "519", life: "29", url:"index.php?act=staff&id=519", img:"user_data/3451.jpg", nen:"平成21年式", soukou:"138471", title:"キューブ白4415 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "515", life: "59", url:"index.php?act=staff&id=515", img:"user_data/3460.jpg", nen:"平成20年式", soukou:"97297", title:"ノア銀4414 トヨタ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "510", life: "19", url:"index.php?act=staff&id=510", img:"user_data/3718.jpg", nen:"平成21年式", soukou:"119123", title:"ノート赤4369 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "499", life: "19", url:"index.php?act=staff&id=499", img:"user_data/3034.jpg", nen:"平成23年式", soukou:"120706", title:"マーチ銀4280 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "495", life: "19", url:"index.php?act=staff&id=495", img:"user_data/3024.jpg", nen:"平成21年式", soukou:"117491", title:"スイフト茶4282 スズキ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "494", life: "29", url:"index.php?act=staff&id=494", img:"user_data/3025.jpg", nen:"平成21年式", soukou:"91036", title:"IQ赤4289 トヨタ ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "493", life: "29", url:"index.php?act=staff&id=493", img:"user_data/3083.jpg", nen:"平成21年式", soukou:"88234", title:"インプレッサ465 スバル", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "489", life: "49", url:"index.php?act=staff&id=489", img:"user_data/2879.jpg", nen:"平成24年式", soukou:"101700", title:"キューブ茶4214 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "483", life: "19", url:"index.php?act=staff&id=483", img:"user_data/3269.jpg", nen:"平成19年式", soukou:"96748", title:"キューブ青4145 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "481", life: "19", url:"index.php?act=staff&id=481", img:"user_data/3091.jpg", nen:"平成20年式", soukou:"127169", title:"ノート銀4184 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "478", life: "29", url:"index.php?act=staff&id=478", img:"user_data/2719.jpg", nen:"平成21年式", soukou:"99161", title:"フィット黄色4899 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "476", life: "29", url:"index.php?act=staff&id=476", img:"user_data/2573.jpg", nen:"平成22年式", soukou:"143000", title:"キューブ銀4086 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "472", life: "19", url:"index.php?act=staff&id=472", img:"user_data/2526.jpg", nen:"平成20年式", soukou:"98515", title:"ラフェスタ銀4087 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "466", life: "9", url:"index.php?act=staff&id=466", img:"user_data/2987.jpg", nen:"平成17年式", soukou:"101839", title:"ラクティス銀4204 トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "458", life: "29", url:"index.php?act=staff&id=458", img:"user_data/2430.jpg", nen:"平成21年式", soukou:"62429", title:"ウイングロード白4190日産", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "449", life: "39", url:"index.php?act=staff&id=449", img:"user_data/3157.jpg", nen:"平成23年式", soukou:"132600", title:"キューブ白4085 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "445", life: "19", url:"index.php?act=staff&id=445", img:"user_data/2379.jpg", nen:"平成22年式", soukou:"82700", title:"コルト紺4056 ミツビシ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "443", life: "19", url:"index.php?act=staff&id=443", img:"user_data/2683.jpg", nen:"平成20年式", soukou:"104919", title:"ラフェスタ4115 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "437", life: "19", url:"index.php?act=staff&id=437", img:"user_data/2369.jpg", nen:"平成20年式", soukou:"98206", title:"Bb銀4130 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "429", life: "39", url:"index.php?act=staff&id=429", img:"user_data/2361.jpg", nen:"平成22年式", soukou:"119332", title:"フリード紺4126 ホンダ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "418", life: "49", url:"index.php?act=staff&id=418", img:"user_data/2552.jpg", nen:"平成22年式", soukou:"133269", title:"フリード白4125 ホンダ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "413", life: "29", url:"index.php?act=staff&id=413", img:"user_data/2347.jpg", nen:"平成22年式", soukou:"148346", title:"キューブ茶4052 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "412", life: "49", url:"index.php?act=staff&id=412", img:"user_data/2322.jpg", nen:"平成22年式", soukou:"112934", title:"キューブ黒4896 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "399", life: "49", url:"index.php?act=staff&id=399", img:"user_data/3877.jpg", nen:"平成23年式", soukou:"122957", title:"ライフ銀1379 ホンダ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "398", life: "29", url:"index.php?act=staff&id=398", img:"user_data/2164.jpg", nen:"平成20年式", soukou:"78165", title:"AD白157 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "386", life: "9", url:"index.php?act=staff&id=386", img:"user_data/2290.jpg", nen:"平成18年式", soukou:"103861", title:"ノート銀4186 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "385", life: "19", url:"index.php?act=staff&id=385", img:"user_data/2418.jpg", nen:"平成21年式", soukou:"109044", title:"フィット黒4230 ホンダ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "375", life: "19", url:"index.php?act=staff&id=375", img:"user_data/2481.jpg", nen:"平成21年式", soukou:"98840", title:"フィット紫4030 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "372", life: "55", url:"index.php?act=staff&id=372", img:"user_data/2354.jpg", nen:"平成23年式", soukou:"143165", title:"マーチ茶4116 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "367", life: "24", url:"index.php?act=staff&id=367", img:"user_data/2294.jpg", nen:"平成22年式", soukou:"139083", title:"マーチ白4156 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "361", life: "29", url:"index.php?act=staff&id=361", img:"user_data/2104.jpg", nen:"平成20年式", soukou:"113472", title:"ムーブコンテ1348ダイハツ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "352", life: "49", url:"index.php?act=staff&id=352", img:"user_data/2120.jpg", nen:"平成22年式", soukou:"97414", title:"フィット 赤4209 ホンダ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "327", life: "ご予算♪", url:"index.php?act=staff&id=327", img:"user_data/750.jpg", nen:"ご希望に応じて♪", soukou:"ご希望による♪", title:"リクエストプラン!!", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "321", life: "39", url:"index.php?act=staff&id=321", img:"user_data/1512.jpg", nen:"平成21年式", soukou:"91105", title:"フィットグレー3946 ホンダ", sold:"", new:"", tag: ["新着","","","AT","売り切れ"], description: "tesut" }, { id: "304", life: "19", url:"index.php?act=staff&id=304", img:"user_data/205.jpg", nen:"平成19年式", soukou:"142937", title:"ランディ銀4796 スズキ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "301", life: "14", url:"index.php?act=staff&id=301", img:"user_data/237.jpg", nen:"平成19年式", soukou:"113619", title:"ラフェスタ青3902 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "299", life: "14", url:"index.php?act=staff&id=299", img:"user_data/3650.jpg", nen:"平成18年式", soukou:"76095", title:"ラクティス銀3563 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "290", life: "39", url:"index.php?act=staff&id=290", img:"user_data/1055.jpg", nen:"平成23年式", soukou:"101300", title:"マーチ薄ピンク3908ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "289", life: "38", url:"index.php?act=staff&id=289", img:"user_data/1340.jpg", nen:"平成23年式", soukou:"107300", title:"マーチ茶3557 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "288", life: "38", url:"index.php?act=staff&id=288", img:"user_data/1112.jpg", nen:"平成23年式", soukou:"108800", title:"マーチ銀3452 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "286", life: "38", url:"index.php?act=staff&id=286", img:"user_data/1875.jpg", nen:"平成22年式", soukou:"110585", title:"マーチ白3383 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "285", life: "39", url:"index.php?act=staff&id=285", img:"user_data/1496.jpg", nen:"平成22年式", soukou:"75201", title:"マーチ銀3363 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "265", life: "14", url:"index.php?act=staff&id=265", img:"user_data/863.jpg", nen:"平成19年式", soukou:"118026", title:"ベリーサ白4889 マツダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "248", life: "29", url:"index.php?act=staff&id=248", img:"user_data/665.jpg", nen:"平成21年式", soukou:"145614", title:"フリード銀3886 ホンダ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "235", life: "39", url:"index.php?act=staff&id=235", img:"user_data/1702.jpg", nen:"平成22年式", soukou:"124575", title:"フィットグレー3825 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "232", life: "39", url:"index.php?act=staff&id=232", img:"user_data/1430.jpg", nen:"平成21年式", soukou:"72000", title:"フィット黒3872 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "231", life: "39", url:"index.php?act=staff&id=231", img:"user_data/1406.jpg", nen:"平成21年式", soukou:"116698", title:"フィット赤3871 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "229", life: "34", url:"index.php?act=staff&id=229", img:"user_data/2071.jpg", nen:"平成21年式", soukou:"119400", title:"フィット青4192 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "228", life: "14", url:"index.php?act=staff&id=228", img:"user_data/1388.jpg", nen:"平成21年式", soukou:"144100", title:"フィット青3570 ホンダ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "226", life: "19", url:"index.php?act=staff&id=226", img:"user_data/692.jpg", nen:"平成20年式", soukou:"122399", title:"フィット青4867 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "220", life: "19", url:"index.php?act=staff&id=220", img:"user_data/1770.jpg", nen:"平成20年式", soukou:"99492", title:"フィット水色4219 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "218", life: "19", url:"index.php?act=staff&id=218", img:"user_data/1778.jpg", nen:"平成20年式", soukou:"144050", title:"フィット薄ピンク3573ホンダ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "217", life: "19", url:"index.php?act=staff&id=217", img:"user_data/1818.jpg", nen:"平成20年式", soukou:"145957", title:"フィット青3569 ホンダ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "184", life: "14", url:"index.php?act=staff&id=184", img:"user_data/394.jpg", nen:"平成19年式", soukou:"79897", title:"ノート青4871 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "167", life: "21", url:"index.php?act=staff&id=167", img:"user_data/820.jpg", nen:"平成22年式", soukou:"98186", title:"ソリオ黒3539 スズキ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "164", life: "39", url:"index.php?act=staff&id=164", img:"user_data/1738.jpg", nen:"平成20年式", soukou:"123171", title:"セレナガンメタ3821日産", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "105", life: "19", url:"index.php?act=staff&id=105", img:"user_data/2095.jpg", nen:"平成21年式", soukou:"80859", title:"コルト銀4877 ミツビシ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "93", life: "9", url:"index.php?act=staff&id=93", img:"user_data/794.jpg", nen:"平成18年式", soukou:"112352", title:"キューブ白4122 ニッサン", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "82", life: "39", url:"index.php?act=staff&id=82", img:"user_data/996.jpg", nen:"平成22年式", soukou:"112991", title:"エクシーガ602 スバル", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "74", life: "19", url:"index.php?act=staff&id=74", img:"user_data/1736.jpg", nen:"平成20年式", soukou:"79116", title:"ウイングロード黒3748日産", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "70", life: "19", url:"index.php?act=staff&id=70", img:"user_data/768.jpg", nen:"平成20年式", soukou:"90800", title:"ヴィッツ黒4892トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "49", life: "14", url:"index.php?act=staff&id=49", img:"user_data/837.jpg", nen:"平成19年式", soukou:"112278", title:"アイシス水色3813 トヨタ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "44", life: "19", url:"index.php?act=staff&id=44", img:"user_data/213.jpg", nen:"平成18年式", soukou:"59119", title:"MPV376白 マツダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "40", life: "39", url:"index.php?act=staff&id=40", img:"user_data/601.jpg", nen:"平成23年式", soukou:"116000", title:"ミニキャブ白237 ミツビシ", 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(); });