$(function() { /*================================================================ 情報 ================================================================*/ var allList = [ { id: "503", life: "59.8", url:"index.php?act=staff&id=503", img:"user_data/3411.jpg", nen:"平成26年式", soukou:"80205", title:"マーチピンク4283 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "874", life: "78.8", url:"index.php?act=staff&id=874", img:"user_data/6269.jpg", nen:"平成26年式", soukou:"41637", title:"ノート水色5295 ニッサン 仕入先→福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "959", life: "68.8", url:"index.php?act=staff&id=959", img:"user_data/6813.jpg", nen:"平成26年式", soukou:"42114", title:"ノート赤 ニッサン 仕入先→神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "961", life: "69.8", url:"index.php?act=staff&id=961", img:"user_data/6817.jpg", nen:"平成26年式", soukou:"74372", title:"ノート銀 ニッサン 仕入先→神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "962", life: "98.8", url:"index.php?act=staff&id=962", img:"user_data/6812.jpg", nen:"平成27年式", soukou:"85803", title:"フィットHV銀 ホンダ 仕入先→神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "963", life: "98.8", url:"index.php?act=staff&id=963", img:"user_data/6815.jpg", nen:"平成27年式", soukou:"74338", title:"フィットHV銀 ホンダ 仕入先→神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "965", life: "88.8", url:"index.php?act=staff&id=965", img:"user_data/6816.jpg", nen:"平成26年式", soukou:"50847", title:"フィットHV銀 ホンダ 仕入先→神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "971", life: "ここクリ", url:"index.php?act=staff&id=971", img:"user_data/6800.jpg", nen:"🉐価格", soukou:"🉐価格", title:"SOLING 6.75型VGA ワンセグ Bluetooth対応 カーナビ ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "972", life: "89.8", url:"index.php?act=staff&id=972", img:"user_data/6819.jpg", nen:"平成27年式", soukou:"73088", title:"フィットGK3銀5372 ホンダ 仕入先→福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "973", life: "88.8", url:"index.php?act=staff&id=973", img:"user_data/6850.jpg", nen:"平成25年式", soukou:"44495", title:"アクア赤5361 トヨタ 仕入先→神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "983", life: "55.8", url:"index.php?act=staff&id=983", img:"user_data/6904.jpg", nen:"平成24年式", soukou:"37405", title:"パッソ水色 トヨタ 仕入先→沖縄", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "984", life: "58.8", url:"index.php?act=staff&id=984", img:"user_data/6905.jpg", nen:"平成25年式", soukou:"91084", title:"ポルテアイボリー トヨタ 仕入先→沖縄", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "991", life: "222.8", url:"index.php?act=staff&id=991", img:"user_data/6913.jpg", nen:"平成27年式", soukou:"108500", title:"②クラウンHVロイヤルサルーン紺仕入先→埼玉", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1014", life: "39.8", url:"index.php?act=staff&id=1014", img:"user_data/6922.jpg", nen:"平成23年式", soukou:"59000", title:"㉕マーチ 12S シルバー仕入先:福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1016", life: "49.8", url:"index.php?act=staff&id=1016", img:"user_data/6923.jpg", nen:"平成24年式", soukou:"103000", title:"㉗マーチ 12Sシルバー仕入先:福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1017", life: "39.8", url:"index.php?act=staff&id=1017", img:"user_data/6924.jpg", nen:"平成23年式", soukou:"89000", title:"㉘マーチ 12Sシルバー仕入先:福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1018", life: "49.8", url:"index.php?act=staff&id=1018", img:"user_data/6925.jpg", nen:"平成24年式", soukou:"63000", title:"㉙マーチ12Sシルバー仕入先:福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1019", life: "49.8", url:"index.php?act=staff&id=1019", img:"user_data/6926.jpg", nen:"平成24年式", soukou:"102000", title:"㉚キューブ 15Xビターショコラ仕入先:福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1020", life: "34.8", url:"index.php?act=staff&id=1020", img:"user_data/6927.jpg", nen:"平成21年式", soukou:"118000", title:"㉛キューブ15X パール仕入先:福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "943", life: "98.8", url:"index.php?act=staff&id=943", img:"user_data/6792.jpg", nen:"平成27年式", soukou:"77899", title:"フィットHV白 ホンダ 仕入先→神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "942", life: "98.8", url:"index.php?act=staff&id=942", img:"user_data/6640.jpg", nen:"平成22年式", soukou:"76396", title:"クラウンロイヤルサルーン黒 トヨタ 仕入先→沖縄", sold:"", new:"", tag: ["新着","","","AT","売り切れ"], description: "tesut" }, { id: "940", life: "78.8", url:"index.php?act=staff&id=940", img:"user_data/6914.jpg", nen:"平成26年式", soukou:"96394", title:"ノート銀5307 ニッサン 仕入先→神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "928", life: "クリック", url:"index.php?act=staff&id=928", img:"user_data/6600.jpg", nen:"🉐価格", soukou:"🉐価格", title:"貴方をまもる!!ドライブレコーダー", 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: "917", life: "89.8", url:"index.php?act=staff&id=917", img:"user_data/6604.jpg", nen:"平成26年式", soukou:"93441", title:"フィットHV銀5290 ホンダ 仕入先→神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "913", life: "138.8", url:"index.php?act=staff&id=913", img:"user_data/6574.jpg", nen:"平成24年式", soukou:"68538", title:"レクサスCT200H白3210 トヨタ 仕入先→沖縄", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "911", life: "89.8", url:"index.php?act=staff&id=911", img:"user_data/6418.jpg", nen:"平成26年式", soukou:"83890", title:"フィットHV銀5270 ホンダ 仕入先→福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "910", life: "89.8", url:"index.php?act=staff&id=910", img:"user_data/6416.jpg", nen:"平成26年式", soukou:"98574", title:"フィットHV銀5267 ホンダ 仕入先→神戸", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "908", life: "88.8", url:"index.php?act=staff&id=908", img:"user_data/6417.jpg", nen:"平成26年式", soukou:"76000", title:"フィットHV青 ホンダ 仕入先→関西", sold:"", new:"", tag: ["新着","","","AT","売り切れ"], description: "tesut" }, { id: "907", life: "93.8", url:"index.php?act=staff&id=907", img:"user_data/6414.jpg", nen:"平成26年式", soukou:"94548", title:"フィットHV白5272 ホンダ 仕入先→関西", sold:"", new:"", tag: ["新着","","","AT","売り切れ"], description: "tesut" }, { id: "904", life: "82.8", url:"index.php?act=staff&id=904", img:"user_data/6399.jpg", nen:"平成26年式", soukou:"73927", title:"アクア白5276 トヨタ 仕入先→神奈川", sold:"", new:"", tag: ["新着","","","AT","売り切れ"], description: "tesut" }, { id: "903", life: "82.8", url:"index.php?act=staff&id=903", img:"user_data/6398.jpg", nen:"平成26年式", soukou:"78393", title:"アクア白5268 トヨタ 仕入先→神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "898", life: "98.8", url:"index.php?act=staff&id=898", img:"user_data/6377.jpg", nen:"平成27年式", soukou:"87465", title:"フィットGK3銀5255 ホンダ 仕入先→福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "897", life: "98.8", url:"index.php?act=staff&id=897", img:"user_data/6376.jpg", nen:"平成27年式", soukou:"83744", title:"フィットGK3銀5253 ホンダ 仕入先→福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "896", life: "98.8", url:"index.php?act=staff&id=896", img:"user_data/6374.jpg", nen:"平成27年式", soukou:"87269", title:"フィットGK3銀5254 ホンダ 仕入先→福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "895", life: "82.8", url:"index.php?act=staff&id=895", img:"user_data/6364.jpg", nen:"平成26年式", soukou:"88778", title:"アクア白5262 トヨタ 仕入先→沖縄", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "894", life: "74.8", url:"index.php?act=staff&id=894", img:"user_data/6372.jpg", nen:"平成25年式", soukou:"85300", title:"ノートグレー5244 ニッサン 仕入先→大阪", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "893", life: "92.8", url:"index.php?act=staff&id=893", img:"user_data/6371.jpg", nen:"平成26年式", soukou:"94563", title:"フィットHV白5251 ホンダ 仕入先→神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "892", life: "75.8", url:"index.php?act=staff&id=892", img:"user_data/6370.jpg", nen:"平成25年式", soukou:"86090", title:"フィルダー銀5258 トヨタ 仕入先→神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "890", life: "78.8", url:"index.php?act=staff&id=890", img:"user_data/6369.jpg", nen:"平成25年式", soukou:"83416", title:"フィットHV白5264 ホンダ 仕入先→神戸 ", sold:"", new:"", tag: ["新着","","","AT","売り切れ"], description: "tesut" }, { id: "889", life: "78.8", url:"index.php?act=staff&id=889", img:"user_data/6368.jpg", nen:"平成26年式", soukou:"73569", title:"ノート白5256 ニッサン 仕入先→東京", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "888", life: "78.8", url:"index.php?act=staff&id=888", img:"user_data/6367.jpg", nen:"平成26年式", soukou:"56839", title:"ノート銀5248 ニッサン 仕入先→東京", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "887", life: "74.8", url:"index.php?act=staff&id=887", img:"user_data/6366.jpg", nen:"平成25年式", soukou:"72857", title:"ノートグレー5257 ニッサン 仕入先→東京", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "886", life: "74.8", url:"index.php?act=staff&id=886", img:"user_data/6365.jpg", nen:"平成25年式", soukou:"67126", title:"ノート銀5252 ニッサン 仕入先→東京", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "879", life: "49.8", url:"index.php?act=staff&id=879", img:"user_data/6306.jpg", nen:"平成23年式", soukou:"76946", title:"ヴィッツグレー5261 トヨタ 仕入先→沖縄", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "877", life: "82.8", url:"index.php?act=staff&id=877", img:"user_data/6303.jpg", nen:"平成26年式", soukou:"92544", title:"アクア白5259 トヨタ 仕入先→沖縄", sold:"", new:"", tag: ["新着","","","AT","売り切れ"], description: "tesut" }, { id: "876", life: "82.8", url:"index.php?act=staff&id=876", img:"user_data/6305.jpg", nen:"平成26年式", soukou:"80408", title:"フィットHV銀5250 ホンダ 仕入先→岡山", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "875", life: "88.8", url:"index.php?act=staff&id=875", img:"user_data/6304.jpg", nen:"平成26年式", soukou:"62695", title:"フィットHV赤5265 ホンダ 仕入先→神奈川", sold:"", new:"", tag: ["新着","","","AT","売り切れ"], description: "tesut" }, { id: "872", life: "87.8", url:"index.php?act=staff&id=872", img:"user_data/6252.jpg", nen:"平成26年式", soukou:"62704", title:"アクア銀5208 トヨタ 仕入先→沖縄", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "870", life: "78.8", url:"index.php?act=staff&id=870", img:"user_data/6228.jpg", nen:"平成26年式", soukou:"99082", title:"ノートグレー5275 ニッサン 仕入先→沖縄", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "869", life: "82.8", url:"index.php?act=staff&id=869", img:"user_data/6250.jpg", nen:"平成26年式", soukou:"87510", title:"アクア白5207 トヨタ 仕入先→福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "864", life: "78.8", url:"index.php?act=staff&id=864", img:"user_data/5989.jpg", nen:"平成25年式", soukou:"87998", title:"フィットHV銀5180 ホンダ 仕入先→福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "863", life: "78.8", url:"index.php?act=staff&id=863", img:"user_data/5988.jpg", nen:"平成25年式", soukou:"91602", title:"フィットHV銀5179 ホンダ 仕入先→福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "862", life: "78.8", url:"index.php?act=staff&id=862", img:"user_data/5987.jpg", nen:"平成25年式", soukou:"83961", title:"フィットHV銀5181 ホンダ 仕入先→福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "859", life: "86.8", url:"index.php?act=staff&id=859", img:"user_data/5868.jpg", nen:"平成25年式", soukou:"85477", title:"フィットHV水色5182 ホンダ 仕入先→福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "856", life: "74.8", url:"index.php?act=staff&id=856", img:"user_data/5856.jpg", nen:"平成25年式", soukou:"69417", title:"ノート黒5171 ニッサン 仕入先→沖縄", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "855", life: "39.8", url:"index.php?act=staff&id=855", img:"user_data/5855.jpg", nen:"平成22年式", soukou:"94780", title:"キューブ黒5166 ニッサン 仕入先→埼玉", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "852", life: "74.8", url:"index.php?act=staff&id=852", img:"user_data/5852.jpg", nen:"平成25年式", soukou:"97955", title:"ノート紫5157 ニッサン 仕入先→大阪", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "850", life: "74.8", url:"index.php?act=staff&id=850", img:"user_data/5847.jpg", nen:"平成25年式", soukou:"83800", title:"ノート白5158 ニッサン 仕入先→福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "848", life: "59.8", url:"index.php?act=staff&id=848", img:"user_data/5850.jpg", nen:"平成25年式", soukou:"88143", title:"ソリオ茶 スズキ 仕入先→岡山", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "847", life: "44.8", url:"index.php?act=staff&id=847", img:"user_data/5851.jpg", nen:"平成23年式", soukou:"96567", title:"キューブ銀5148 ニッサン 仕入先→岡山", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "846", life: "69.8", url:"index.php?act=staff&id=846", img:"user_data/6025.jpg", nen:"平成24年式", soukou:"40627", title:"ノート紫5153 ニッサン 仕入先→関西", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "845", life: "49.8", url:"index.php?act=staff&id=845", img:"user_data/5845.jpg", nen:"平成23年式", soukou:"88911", title:"ヴィッツ白5150 トヨタ 仕入先→関西", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "844", life: "49.8", url:"index.php?act=staff&id=844", img:"user_data/5844.jpg", nen:"平成24年式", soukou:"60275", title:"キューブ白5154 ニッサン 仕入先→関西", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "843", life: "39.8", url:"index.php?act=staff&id=843", img:"user_data/5849.jpg", nen:"平成22年式", soukou:"66201", title:"キューブ茶5164 ニッサン 仕入先→関西", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "842", life: "39.8", url:"index.php?act=staff&id=842", img:"user_data/5843.jpg", nen:"平成22年式", soukou:"49168", title:"キューブグレー5165 ニッサン 仕入先→関西", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "841", life: "74.8", url:"index.php?act=staff&id=841", img:"user_data/5842.jpg", nen:"平成25年式", soukou:"99508", title:"ノート紫5155 ニッサン 仕入先→関西", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "826", life: "39.8", url:"index.php?act=staff&id=826", img:"user_data/5712.jpg", nen:"平成23年式", soukou:"73545", title:"マーチ銀5128 ニッサン 仕入先→沖縄", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "824", life: "69.8", url:"index.php?act=staff&id=824", img:"user_data/5711.jpg", nen:"平成25年式", soukou:"103278", title:"ノートグレー5123 ニッサン 仕入先→関西", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "823", life: "39.8", url:"index.php?act=staff&id=823", img:"user_data/5710.jpg", nen:"平成22年式", soukou:"80543", title:"パッソ紫5131 トヨタ 仕入先→関西", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "821", life: "39.8", url:"index.php?act=staff&id=821", img:"user_data/5708.jpg", nen:"平成22年式", soukou:"88945", title:"キューブ白5125 ニッサン 仕入先→大阪", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "815", life: "44.8", url:"index.php?act=staff&id=815", img:"user_data/5704.jpg", nen:"平成23年式", soukou:"69798", title:"キューブ5127 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "810", life: "44.8", url:"index.php?act=staff&id=810", img:"user_data/5654.jpg", nen:"平成23年式", soukou:"62253", title:"キューブ黒5113 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "808", life: "39.8", url:"index.php?act=staff&id=808", img:"user_data/5658.jpg", nen:"平成22年式", soukou:"64360", title:"キューブ茶5119 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "807", life: "69.8", url:"index.php?act=staff&id=807", img:"user_data/5656.jpg", nen:"平成24年式", soukou:"37200", title:"ノート黒5106 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "806", life: "74.8", url:"index.php?act=staff&id=806", img:"user_data/5652.jpg", nen:"平成25年式", soukou:"49300", title:"ノート青5103 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "803", life: "78.8", url:"index.php?act=staff&id=803", img:"user_data/5545.jpg", nen:"平成25年式", soukou:"83143", title:"フィットHV銀5102 ホンダ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "800", life: "74.8", url:"index.php?act=staff&id=800", img:"user_data/5539.jpg", nen:"平成25年式", soukou:"74050", title:"ノートグレー5086 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "797", life: "39.8", url:"index.php?act=staff&id=797", img:"user_data/5541.jpg", nen:"平成22年式", soukou:"83836", title:"キューブ茶5085 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "796", life: "74.8", url:"index.php?act=staff&id=796", img:"user_data/5537.jpg", nen:"平成26年式", soukou:"80744", title:"シャトルHV白5098 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "789", life: "49.8", url:"index.php?act=staff&id=789", img:"user_data/5461.jpg", nen:"平成23年式", soukou:"20600", title:"パッソクリーム5035 トヨタ 仕入先→沖縄", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "782", life: "39.8", url:"index.php?act=staff&id=782", img:"user_data/4936.jpg", nen:"平成22年式", soukou:"78900", title:"キューブ茶4963 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "781", life: "44.8", url:"index.php?act=staff&id=781", img:"user_data/4937.jpg", nen:"平成23年式", soukou:"113308", title:"キューブ白4964 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "774", life: "44.8", url:"index.php?act=staff&id=774", img:"user_data/4930.jpg", nen:"平成23年式", soukou:"75880", title:"キューブグレー5025ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "773", life: "39.8", url:"index.php?act=staff&id=773", img:"user_data/4929.jpg", nen:"平成22年式", soukou:"88400", title:"キューブ茶4962 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "771", life: "78.8", url:"index.php?act=staff&id=771", img:"user_data/4909.jpg", nen:"平成26年式", soukou:"24053", title:"ノート白5030 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "770", life: "59.8", url:"index.php?act=staff&id=770", img:"user_data/5532.jpg", nen:"平成24年式", soukou:"31754", title:"ヴィッツ白5031 トヨタ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "761", life: "39.8", url:"index.php?act=staff&id=761", img:"user_data/4921.jpg", nen:"平成22年式", soukou:"67593", title:"キューブ4956 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "760", life: "49.8", url:"index.php?act=staff&id=760", img:"user_data/4913.jpg", nen:"平成23年式", soukou:"46000", title:"ヴィッツ銀4952 トヨタ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "756", life: "49.8", url:"index.php?act=staff&id=756", img:"user_data/4918.jpg", nen:"平成24年式", soukou:"92242", title:"キューブグレー5029ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "751", life: "59.8", url:"index.php?act=staff&id=751", img:"user_data/4905.jpg", nen:"平成24年式", soukou:"46818", title:"ヴィッツ黄色5039 トヨタ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "745", life: "69.8", url:"index.php?act=staff&id=745", img:"user_data/4899.jpg", nen:"平成24年式", soukou:"82859", title:"アクア青4938 トヨタ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "742", life: "69.8", url:"index.php?act=staff&id=742", img:"user_data/4897.jpg", nen:"平成24年式", soukou:"60807", title:"ノート銀4927 ニッサン", sold:"", new:"", tag: ["新着","","","AT","売り切れ"], description: "tesut" }, { id: "735", life: "78.8", url:"index.php?act=staff&id=735", img:"user_data/4887.jpg", nen:"平成26年式", soukou:"97400", title:"フィットGK3銀4860 ホンダ 仕入先→沖縄", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "729", life: "44.8", url:"index.php?act=staff&id=729", img:"user_data/4879.jpg", nen:"平成23年式", soukou:"96987", title:"キューブ4878 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "720", life: "49.8", url:"index.php?act=staff&id=720", img:"user_data/4876.jpg", nen:"平成24年式", soukou:"63300", title:"ミラージュ黒4869 ミツビシ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "715", life: "74.8", url:"index.php?act=staff&id=715", img:"user_data/4856.jpg", nen:"平成25年式", soukou:"84929", title:"ノート銀4828 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "710", life: "59.8", url:"index.php?act=staff&id=710", img:"user_data/4836.jpg", nen:"平成24年式", soukou:"60098", title:"ヴィッツグレー4824 トヨタ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "704", life: "62.8", url:"index.php?act=staff&id=704", img:"user_data/4802.jpg", nen:"平成25年式", soukou:"111076", title:"フィットHV銀4810 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "699", life: "39.8", url:"index.php?act=staff&id=699", img:"user_data/4809.jpg", nen:"平成22年式", soukou:"80200", title:"キューブ4736 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "697", life: "39.8", url:"index.php?act=staff&id=697", img:"user_data/4805.jpg", nen:"平成23年式", soukou:"91626", title:"ヴィッツ銀4804 トヨタ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "693", life: "49.8", url:"index.php?act=staff&id=693", img:"user_data/4797.jpg", nen:"平成23年式", soukou:"72600", title:"ヴィッツ水色4743 トヨタ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "692", life: "74.8", url:"index.php?act=staff&id=692", img:"user_data/4796.jpg", nen:"平成25年式", soukou:"91300", title:"ノート銀4741 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "682", life: "59.8", url:"index.php?act=staff&id=682", img:"user_data/4748.jpg", nen:"平成24年式", soukou:"66300", title:"ヴィッツピンク4723 トヨタ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "680", life: "49.8", url:"index.php?act=staff&id=680", img:"user_data/4703.jpg", nen:"平成23年式", soukou:"77700", title:"ヴィッツ白4737 トヨタ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "676", life: "49.8", url:"index.php?act=staff&id=676", img:"user_data/4691.jpg", nen:"平成24年式", soukou:"82585", title:"マーチ茶4712 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "666", life: "49.8", url:"index.php?act=staff&id=666", img:"user_data/4513.jpg", nen:"平成23年式", soukou:"55200", title:"パッソ緑4729 トヨタ", sold:"", new:"", tag: ["新着","","","AT","売り切れ"], description: "tesut" }, { id: "649", life: "39.8", url:"index.php?act=staff&id=649", img:"user_data/4434.jpg", nen:"平成23年式", soukou:"58000", title:"マーチボレロ茶4716ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "638", life: "49.8", url:"index.php?act=staff&id=638", img:"user_data/4406.jpg", nen:"平成22年式", soukou:"81544", title:"フィットHV緑4700 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "628", life: "49.8", url:"index.php?act=staff&id=628", img:"user_data/4401.jpg", nen:"平成23年式", soukou:"80696", title:"ソリオ黒4813 スズキ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "615", life: "49.8", url:"index.php?act=staff&id=615", img:"user_data/4208.jpg", nen:"平成23年式", soukou:"67600", title:"ヴィッツ薄緑4681 トヨタ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "607", life: "54.8", url:"index.php?act=staff&id=607", img:"user_data/4326.jpg", nen:"平成25年式", soukou:"82600", title:"マーチ銀4666 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "597", life: "49.8", url:"index.php?act=staff&id=597", img:"user_data/4024.jpg", nen:"平成24年式", soukou:"63100", title:"ミラージュ緑4657 ミツビシ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "592", life: "54.8", url:"index.php?act=staff&id=592", img:"user_data/4025.jpg", nen:"平成25年式", soukou:"92900", title:"パッソ白4656 トヨタ", sold:"", new:"", tag: ["新着","","","AT","売り切れ"], description: "tesut" }, { id: "590", life: "54.8", url:"index.php?act=staff&id=590", img:"user_data/4019.jpg", nen:"平成25年式", soukou:"98700", title:"マーチ銀4653 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "585", life: "59.8", url:"index.php?act=staff&id=585", img:"user_data/3687.jpg", nen:"平成25年式", soukou:"42200", title:"フィット水色4655  ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "581", life: "39.8", url:"index.php?act=staff&id=581", img:"user_data/3686.jpg", nen:"平成22年式", soukou:"97300", title:"パッソ鶯メタル4654 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "579", life: "49.8", url:"index.php?act=staff&id=579", img:"user_data/3736.jpg", nen:"平成23年式", soukou:"71300", title:"パッソ白4635 トヨタ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "574", life: "39.8", url:"index.php?act=staff&id=574", img:"user_data/3885.jpg", nen:"平成22年式", soukou:"68600", title:"パッソ薄紫4618 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "566", life: "54.8", url:"index.php?act=staff&id=566", img:"user_data/3910.jpg", nen:"平成25年式", soukou:"95300", title:"マーチ銀4623 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "565", life: "54.8", url:"index.php?act=staff&id=565", img:"user_data/3807.jpg", nen:"平成25年式", soukou:"98400", title:"マーチ銀4624 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "521", life: "49.8", url:"index.php?act=staff&id=521", img:"user_data/3764.jpg", nen:"平成23年式", soukou:"71500", title:"ヴィッツ銀4424 トヨタ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "518", life: "44.8", url:"index.php?act=staff&id=518", img:"user_data/3450.jpg", nen:"平成23年式", soukou:"95200", title:"キューブ白4417 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "507", life: "68", url:"index.php?act=staff&id=507", img:"user_data/3395.jpg", nen:"平成26年式", soukou:"79523", title:"デミオ紺4290 マツダ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "479", life: "59.8", url:"index.php?act=staff&id=479", img:"user_data/3344.jpg", nen:"平成26年式", soukou:"89986", title:"マーチ薄紫4158 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "459", life: "39.8", url:"index.php?act=staff&id=459", img:"user_data/2429.jpg", nen:"平成23年式", soukou:"91172", title:"マーチ茶4193 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "448", life: "49.8", url:"index.php?act=staff&id=448", img:"user_data/2445.jpg", nen:"平成25年式", soukou:"84000", title:"ミラージュ白4162 ミツビシ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "444", life: "59", url:"index.php?act=staff&id=444", img:"user_data/2377.jpg", nen:"平成23年式", soukou:"105902", title:"インサイト銀4057 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "441", life: "89", url:"index.php?act=staff&id=441", img:"user_data/2373.jpg", nen:"平成24年式", soukou:"83704", title:"ラクティス黒4226 トヨタ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "417", life: "49.8", url:"index.php?act=staff&id=417", img:"user_data/2358.jpg", nen:"平成23年式", soukou:"28516", title:"パッソ緑4268 トヨタ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "406", life: "53.8", url:"index.php?act=staff&id=406", img:"user_data/2201.jpg", nen:"平成23年式", soukou:"64410", title:"フィットHV緑4107ホンダ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "405", life: "53.8", url:"index.php?act=staff&id=405", img:"user_data/2152.jpg", nen:"平成23年式", soukou:"59523", title:"フィットHV銀4103ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "397", life: "64.8", url:"index.php?act=staff&id=397", img:"user_data/2148.jpg", nen:"平成27年式", soukou:"49622", title:"キューブ銀4114 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "383", life: "74.8", url:"index.php?act=staff&id=383", img:"user_data/2205.jpg", nen:"平成25年式", soukou:"91800", title:"ノートガンメタ4205ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "382", life: "74.8", url:"index.php?act=staff&id=382", img:"user_data/2816.jpg", nen:"平成25年式", soukou:"95500", title:"ノートガンメタ4154ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "370", life: "54.8", url:"index.php?act=staff&id=370", img:"user_data/3041.jpg", nen:"平成25年式", soukou:"51922", title:"マーチ白4229 ニッサン", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "358", life: "49.8", url:"index.php?act=staff&id=358", img:"user_data/2112.jpg", nen:"平成24年式", soukou:"79844", title:"ミラージュ白4208 ミツビシ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "294", life: "49.8", url:"index.php?act=staff&id=294", img:"user_data/1845.jpg", nen:"平成25年式", soukou:"81300", title:"ミラージュ黒3885 ミツビシ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "987", life: "44.8", url:"index.php?act=staff&id=987", img:"./img/nophoto.png", nen:"平成22年式", soukou:"95000", title:"キューブ赤 ニッサン 仕入先→東京", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "990", life: "88.8", url:"index.php?act=staff&id=990", img:"./img/nophoto.png", nen:"平成25年式", soukou:"33974", title:"①アクアG赤トヨタ仕入先→埼玉", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "992", life: "75.8", url:"index.php?act=staff&id=992", img:"./img/nophoto.png", nen:"平成25年式", soukou:"109501", title:"③アクア S ブルー仕入先:埼玉", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "994", life: "56.8", url:"index.php?act=staff&id=994", img:"./img/nophoto.png", nen:"平成23年式", soukou:"70548", title:"⑤フィットHVブルー仕入先:埼玉", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "995", life: "77.8", url:"index.php?act=staff&id=995", img:"./img/nophoto.png", nen:"平成25年式", soukou:"102526", title:"⑥アクアGレッド仕入先:埼玉", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "996", life: "89.8", url:"index.php?act=staff&id=996", img:"./img/nophoto.png", nen:"平成23年式", soukou:"106240", title:"⑦マークX250Gパール仕入先:埼玉", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "997", life: "99.8", url:"index.php?act=staff&id=997", img:"./img/nophoto.png", nen:"平成26年式", soukou:"70300", title:"⑧フィットHV F レッド仕入先:埼玉", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1000", life: "44.8", url:"index.php?act=staff&id=1000", img:"./img/nophoto.png", nen:"平成23年式", soukou:"103805", title:"⑪キューブ15Xブラウン仕入先:埼玉", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1001", life: "86.8", url:"index.php?act=staff&id=1001", img:"./img/nophoto.png", nen:"平成26年式", soukou:"74784", title:"⑫フィットHV Fパッケージ シルバー仕入先:神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1002", life: "78.8", url:"index.php?act=staff&id=1002", img:"./img/nophoto.png", nen:"平成26年式", soukou:"83098", title:"⑬フィット 13G シルバー仕入先:神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1004", life: "78.8", url:"index.php?act=staff&id=1004", img:"./img/nophoto.png", nen:"平成26年式", soukou:"109324", title:"⑮フィット 13G Fパッケージシルバー仕入先:神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1005", life: "78.8", url:"index.php?act=staff&id=1005", img:"./img/nophoto.png", nen:"平成26年式", soukou:"103324", title:"⑯フィット 13G Fパッケージシルバー仕入先:神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1006", life: "78.8", url:"index.php?act=staff&id=1006", img:"./img/nophoto.png", nen:"平成26年式", soukou:"71223", title:"⑰フィット 13G Fパッケージ シルバー仕入先:神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1007", life: "82.8", url:"index.php?act=staff&id=1007", img:"./img/nophoto.png", nen:"平成26年式", soukou:"73029", title:"⑱フィット 13G Fパッケージ パール仕入先:神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1008", life: "78.8", url:"index.php?act=staff&id=1008", img:"./img/nophoto.png", nen:"平成26年式", soukou:"76818", title:"⑲フィット 13G Fパッケージ シルバー仕入先:神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1009", life: "78.8", url:"index.php?act=staff&id=1009", img:"./img/nophoto.png", nen:"平成26年式", soukou:"73558", title:"⑳フィット 13G Fパッケージ シルバー仕入先:神奈川", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1011", life: "44.8", url:"index.php?act=staff&id=1011", img:"./img/nophoto.png", nen:"平成23年式", soukou:"56000", title:"㉒キューブ15Xビターショコラ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1013", life: "64.8", url:"index.php?act=staff&id=1013", img:"./img/nophoto.png", nen:"平成24年式", soukou:"45000", title:"㉔ノート X シルバー仕入先:福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1015", life: "49.8", url:"index.php?act=staff&id=1015", img:"./img/nophoto.png", nen:"平成24年式", soukou:"89000", title:"㉖マーチ 12S シルバー仕入先:福岡", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1021", life: "94.8", url:"index.php?act=staff&id=1021", img:"./img/nophoto.png", nen:"平成27年式", soukou:"123096", title:"㉜アクアS ホワイト 仕入先:兵庫", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1024", life: "98.8", url:"index.php?act=staff&id=1024", img:"./img/nophoto.png", nen:"平成27年式", soukou:"76644", title:"㉟フィット13G・Fパッケージ ホワイト仕入先:兵庫", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1025", life: "78.8", url:"index.php?act=staff&id=1025", img:"./img/nophoto.png", nen:"平成26年式", soukou:"62243", title:"㊱フィット 13G・Fパッケージシルバー仕入先:兵庫", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1027", life: "108.8", url:"index.php?act=staff&id=1027", img:"./img/nophoto.png", nen:"平成27年式", soukou:"67000", title:"㊳アクア S ホワイト仕入先:沖縄", 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(); });