$(function() { /*================================================================ 情報 ================================================================*/ var allList = [ { id: "503", life: "28.8", url:"index.php?act=staff&id=503", img:"user_data/3411.jpg", nen:"平成26年式", soukou:"107813", title:"マーチピンク5589 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "644", life: "23.8", url:"index.php?act=staff&id=644", img:"user_data/4437.jpg", nen:"平成22年式", soukou:"111279", title:"フィットHV緑4706 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1144", life: "43.8", url:"index.php?act=staff&id=1144", img:"user_data/7692.jpg", nen:"平成22年式", soukou:"143528", title:"ステップワゴン5627 L 4WD グレー 仕入先→兵庫", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1133", life: "33.8", url:"index.php?act=staff&id=1133", img:"user_data/7684.jpg", nen:"平成22年式", soukou:"99188", title:"フィットハイブリッド シルバー5637 仕入先→兵庫", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1126", life: "38.8", url:"index.php?act=staff&id=1126", img:"user_data/7607.jpg", nen:"平成21年式", soukou:"84607", title:"インサイト L 5592シルバー 仕入先→佐賀", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1125", life: "38.8", url:"index.php?act=staff&id=1125", img:"user_data/7679.jpg", nen:"平成21年式", soukou:"111274", title:"インサイト G シルバー5634 仕入先→愛知", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1124", life: "43.8", url:"index.php?act=staff&id=1124", img:"user_data/7678.jpg", nen:"平成21年式", soukou:"27547", title:"インサイト G 5632シルバー 仕入先→愛知", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1119", life: "43.8", url:"index.php?act=staff&id=1119", img:"user_data/7675.jpg", nen:"平成22年式", soukou:"107296", title:"フリード FREXエアロ5640 紺 仕入先→東京", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1118", life: "43.8", url:"index.php?act=staff&id=1118", img:"user_data/7674.jpg", nen:"平成21年式", soukou:"118716", title:"フリード GエアロPKG5622 パール 仕入先→東京", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1117", life: "568.8", url:"index.php?act=staff&id=1117", img:"user_data/7666.jpg", nen:"昭和46年式", soukou:"12000", title:"グロリア スーパーデラックス ニッサン 仕入先→愛知", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1086", life: "226.8", url:"index.php?act=staff&id=1086", img:"user_data/7576.jpg", nen:"平成15年式", soukou:"168564", title:"コースター観音開き金トヨタ仕入→栃木", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1072", life: "43.8", url:"index.php?act=staff&id=1072", img:"user_data/7501.jpg", nen:"平成21年式", soukou:"151539", title:"クラウンマジェスタCタイフ黒トヨタ仕入先→沖縄", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1044", life: "23.8", url:"index.php?act=staff&id=1044", img:"user_data/6972.jpg", nen:"平成23年式", soukou:"82958", title:"マーチG紫5581 ニッサン 仕入先→福岡", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1043", life: "23.8", url:"index.php?act=staff&id=1043", img:"user_data/6967.jpg", nen:"平成21年式", soukou:"123409", title:"キューブX銀 ニッサン 仕入先→福岡", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1041", life: "23.8", url:"index.php?act=staff&id=1041", img:"user_data/6970.jpg", nen:"平成23年式", soukou:"77028", title:"マーチX銀 ニッサン 仕入先→福岡", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1040", life: "23.8", url:"index.php?act=staff&id=1040", img:"user_data/6971.jpg", nen:"平成25年式", soukou:"65710", title:"マーチX紫5596 ニッサン 仕入先→福岡", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1039", life: "28.8", url:"index.php?act=staff&id=1039", img:"user_data/6969.jpg", nen:"平成21年式", soukou:"74016", title:"キューブX茶 ニッサン 仕入先→福岡", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1038", life: "43.8", url:"index.php?act=staff&id=1038", img:"user_data/6965.jpg", nen:"平成23年式", soukou:"120912", title:"シャトルHV銀5447 ホンダ 仕入先→福岡", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1037", life: "23.8", url:"index.php?act=staff&id=1037", img:"user_data/6968.jpg", nen:"平成23年式", soukou:"95065", title:"マーチ銀5587 ニッサン 仕入先→福岡", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1028", life: "43.8", url:"index.php?act=staff&id=1028", img:"user_data/6932.jpg", nen:"平成22年式", soukou:"86384", title:"フリードGエアロ黒5440 ホンダ 仕入先→沖縄", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "1020", life: "28.8", url:"index.php?act=staff&id=1020", img:"user_data/6927.jpg", nen:"平成21年式", soukou:"118018", title:"㉛キューブ15X パール仕入先:福岡", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1019", life: "28.8", url:"index.php?act=staff&id=1019", img:"user_data/6926.jpg", nen:"平成24年式", soukou:"101619", title:"㉚キューブ 15Xビターショコラ仕入先:福岡", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1018", life: "23.8", url:"index.php?act=staff&id=1018", img:"user_data/6925.jpg", nen:"平成24年式", soukou:"62875", title:"マーチ紫5439 ニッサン 仕入先→福岡", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1017", life: "23.8", url:"index.php?act=staff&id=1017", img:"user_data/6924.jpg", nen:"平成23年式", soukou:"89000", title:"マーチ5583 12Sシルバー仕入先:福岡", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1016", life: "23.8", url:"index.php?act=staff&id=1016", img:"user_data/6923.jpg", nen:"平成24年式", soukou:"103499", title:"㉗マーチ 12Sシルバー仕入先:福岡", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1015", life: "23.8", url:"index.php?act=staff&id=1015", img:"user_data/6959.jpg", nen:"平成24年式", soukou:"89000", title:"マーチ5580 12S シルバー仕入先:福岡", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1014", life: "23.8", url:"index.php?act=staff&id=1014", img:"user_data/6922.jpg", nen:"平成23年式", soukou:"61527", title:"マーチ5585 12S シルバー仕入先:福岡", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1012", life: "28.8", url:"index.php?act=staff&id=1012", img:"user_data/6962.jpg", nen:"平成26年式", soukou:"123379", title:"㉓キューブ15X グレー仕入先:福岡", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1011", life: "28.8", url:"index.php?act=staff&id=1011", img:"user_data/6949.jpg", nen:"平成23年式", soukou:"55779", title:"㉒キューブ15Xビターショコラ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1000", life: "28.8", url:"index.php?act=staff&id=1000", img:"user_data/6954.jpg", nen:"平成23年式", soukou:"103805", title:"⑪キューブ15Xブラウン仕入先:埼玉", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "996", life: "58.8", url:"index.php?act=staff&id=996", img:"user_data/7319.jpg", nen:"平成23年式", soukou:"106240", title:"⑦マークX250Gパール仕入先:埼玉", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "994", life: "48.8", url:"index.php?act=staff&id=994", img:"user_data/6934.jpg", nen:"平成23年式", soukou:"70548", title:"⑤フィットHVブルー5435 仕入先:埼玉", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "987", life: "28.8", url:"index.php?act=staff&id=987", img:"user_data/6958.jpg", nen:"平成22年式", soukou:"95431", title:"キューブ赤 ニッサン 仕入先→東京", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "983", life: "28.8", url:"index.php?act=staff&id=983", img:"user_data/6904.jpg", nen:"平成24年式", soukou:"42659", title:"パッソ水色5615 トヨタ 仕入先→沖縄", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "957", life: "48.8", url:"index.php?act=staff&id=957", img:"user_data/6796.jpg", nen:"平成22年式", soukou:"101074", title:"ウイッシュ銀763 トヨタ 仕入先→福岡", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "947", life: "28.8", url:"index.php?act=staff&id=947", img:"user_data/6769.jpg", nen:"平成23年式", soukou:"109142", title:"キューブ黒5306 ニッサン 仕入先→愛知", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "938", life: "18.8", url:"index.php?act=staff&id=938", img:"user_data/6618.jpg", nen:"平成25年式", soukou:"142591", title:"キューブ白5297 ニッサン 仕入先→埼玉", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "930", life: "38.8", url:"index.php?act=staff&id=930", img:"user_data/6615.jpg", nen:"平成26年式", soukou:"117769", title:"シャトルHV銀5540 ホンダ 仕入先→神奈川", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "879", life: "38.8", url:"index.php?act=staff&id=879", img:"user_data/6306.jpg", nen:"平成23年式", soukou:"88500", title:"ヴィッツグレー5261 トヨタ 仕入先→沖縄", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "857", life: "23.8", url:"index.php?act=staff&id=857", img:"user_data/5858.jpg", nen:"平成22年式", soukou:"74529", title:"マーチ紫5170 ニッサン 仕入先→沖縄", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "845", life: "23.8", url:"index.php?act=staff&id=845", img:"user_data/5845.jpg", nen:"平成23年式", soukou:"106357", title:"ヴィッツ白5616 トヨタ 仕入先→関西", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "843", life: "38.8", url:"index.php?act=staff&id=843", img:"user_data/5849.jpg", nen:"平成22年式", soukou:"77359", title:"キューブ茶5570 ニッサン 仕入先→関西", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "842", life: "38.8", url:"index.php?act=staff&id=842", img:"user_data/5843.jpg", nen:"平成22年式", soukou:"55414", title:"キューブグレー5568 ニッサン 仕入先→関西", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "838", life: "28.8", url:"index.php?act=staff&id=838", img:"user_data/5839.jpg", nen:"平成23年式", soukou:"113764", title:"キューブ茶5152 ニッサン 仕入先→埼玉", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "826", life: "28.8", url:"index.php?act=staff&id=826", img:"user_data/5712.jpg", nen:"平成23年式", soukou:"83160", title:"マーチ銀5128 ニッサン 仕入先→沖縄", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "823", life: "28.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: "822", life: "28.8", url:"index.php?act=staff&id=822", img:"user_data/5709.jpg", nen:"平成22年式", soukou:"120489", title:"キューブ白5139 ニッサン 仕入先→関西", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "819", life: "28.8", url:"index.php?act=staff&id=819", img:"user_data/5706.jpg", nen:"平成24年式", soukou:"122141", title:"キューブ5124 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "816", life: "43.8", url:"index.php?act=staff&id=816", img:"user_data/5655.jpg", nen:"平成23年式", soukou:"110813", title:"ラフェスタ白764 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "815", life: "38.8", url:"index.php?act=staff&id=815", img:"user_data/5704.jpg", nen:"平成23年式", soukou:"79635", title:"キューブスミオブルー5565 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "814", life: "38.8", url:"index.php?act=staff&id=814", img:"user_data/5705.jpg", nen:"平成22年式", soukou:"105869", title:"エクシーガ黒671 スバル", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "813", life: "23.8", url:"index.php?act=staff&id=813", img:"user_data/5722.jpg", nen:"平成22年式", soukou:"110979", title:"キューブ白5105 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "808", life: "28.8", url:"index.php?act=staff&id=808", img:"user_data/5658.jpg", nen:"平成22年式", soukou:"89731", title:"キューブ茶5562 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "805", life: "23.8", url:"index.php?act=staff&id=805", img:"user_data/5546.jpg", nen:"平成23年式", soukou:"116689", title:"ヴィッツ薄ピンク5586トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "797", life: "23.8", url:"index.php?act=staff&id=797", img:"user_data/5541.jpg", nen:"平成22年式", soukou:"99981", title:"キューブ茶5085 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "795", life: "23.8", url:"index.php?act=staff&id=795", img:"user_data/5536.jpg", nen:"平成22年式", soukou:"119531", title:"キューブ茶5077 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "794", life: "23.8", url:"index.php?act=staff&id=794", img:"user_data/5535.jpg", nen:"平成21年式", soukou:"88782", title:"キューブ茶5524 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "782", life: "23.8", url:"index.php?act=staff&id=782", img:"user_data/4936.jpg", nen:"平成22年式", soukou:"88429", title:"キューブ茶4963 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "774", life: "33.8", url:"index.php?act=staff&id=774", img:"user_data/4930.jpg", nen:"平成23年式", soukou:"93959", title:"キューブグレー5025ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "773", life: "23.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: "768", life: "28.8", url:"index.php?act=staff&id=768", img:"user_data/4922.jpg", nen:"平成21年式", soukou:"76412", title:"キューブ白5559 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "761", life: "28.8", url:"index.php?act=staff&id=761", img:"user_data/4921.jpg", nen:"平成22年式", soukou:"79083", title:"キューブ5546スミオブルー ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "760", life: "28.8", url:"index.php?act=staff&id=760", img:"user_data/4913.jpg", nen:"平成23年式", soukou:"51991", title:"ヴィッツ銀4952 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "758", life: "23.8", url:"index.php?act=staff&id=758", img:"user_data/4912.jpg", nen:"平成23年式", soukou:"116562", title:"キューブ黒4948 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "756", life: "28.8", url:"index.php?act=staff&id=756", img:"user_data/4918.jpg", nen:"平成24年式", soukou:"107613", title:"キューブグレー5029ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "751", life: "28.8", url:"index.php?act=staff&id=751", img:"user_data/4905.jpg", nen:"平成24年式", soukou:"66394", title:"ヴィッツ黄色5576 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "750", life: "18.8", url:"index.php?act=staff&id=750", img:"user_data/4904.jpg", nen:"平成23年式", soukou:"118557", title:"マーチ黒5579 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "746", life: "23.8", url:"index.php?act=staff&id=746", img:"user_data/4900.jpg", nen:"平成22年式", soukou:"121393", title:"フィットHV白5504 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "744", life: "38.8", url:"index.php?act=staff&id=744", img:"user_data/4898.jpg", nen:"平成23年式", soukou:"99111", title:"フリード銀5514ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "740", life: "28.8", url:"index.php?act=staff&id=740", img:"user_data/4891.jpg", nen:"平成24年式", soukou:"105508", title:"キューブ4883 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "709", life: "18.8", url:"index.php?act=staff&id=709", img:"user_data/4835.jpg", nen:"平成22年式", soukou:"123066", title:"パッソ白5557 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "705", life: "28.8", url:"index.php?act=staff&id=705", img:"user_data/4804.jpg", nen:"平成21年式", soukou:"80275", title:"キューブ4809 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "699", life: "28.8", url:"index.php?act=staff&id=699", img:"user_data/4809.jpg", nen:"平成22年式", soukou:"83449", title:"キューブ5561 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "697", life: "23.8", url:"index.php?act=staff&id=697", img:"user_data/4805.jpg", nen:"平成23年式", soukou:"101670", title:"ヴィッツ銀4804 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "693", life: "33.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: "680", life: "33.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: "28.8", url:"index.php?act=staff&id=676", img:"user_data/4691.jpg", nen:"平成24年式", soukou:"84985", title:"マーチ茶5597 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "649", life: "28.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: "639", life: "18.8", url:"index.php?act=staff&id=639", img:"user_data/4424.jpg", nen:"平成22年式", soukou:"124784", title:"マーチピンク4702 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "638", life: "23.8", url:"index.php?act=staff&id=638", img:"user_data/4406.jpg", nen:"平成22年式", soukou:"87833", title:"フィットHV緑4700 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "628", life: "28.8", url:"index.php?act=staff&id=628", img:"user_data/4401.jpg", nen:"平成23年式", soukou:"90729", title:"ソリオ黒5518 スズキ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "616", life: "23.8", url:"index.php?act=staff&id=616", img:"user_data/4207.jpg", nen:"平成23年式", soukou:"112500", title:"MRワゴン茶1561 スズキ", sold:"", new:"", tag: ["","","","AT","売り切れ"], description: "tesut" }, { id: "615", life: "23.8", url:"index.php?act=staff&id=615", img:"user_data/4208.jpg", nen:"平成23年式", soukou:"75931", title:"ヴィッツ薄緑5618 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "607", life: "23.8", url:"index.php?act=staff&id=607", img:"user_data/4326.jpg", nen:"平成25年式", soukou:"94395", title:"マーチ銀4666 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "601", life: "18.8", url:"index.php?act=staff&id=601", img:"user_data/4041.jpg", nen:"平成24年式", soukou:"120783", title:"フィットLブルー4647ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "597", life: "28.8", url:"index.php?act=staff&id=597", img:"user_data/4024.jpg", nen:"平成24年式", soukou:"70848", title:"ミラージュ緑5619 ミツビシ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "594", life: "23.8", url:"index.php?act=staff&id=594", img:"user_data/4020.jpg", nen:"平成25年式", soukou:"115458", title:"マーチ銀5582 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "585", life: "28.8", url:"index.php?act=staff&id=585", img:"user_data/3687.jpg", nen:"平成25年式", soukou:"51828", title:"フィット水色4655  ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "582", life: "18.8", 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: "581", life: "23.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: "23.8", url:"index.php?act=staff&id=579", img:"user_data/3736.jpg", nen:"平成23年式", soukou:"82740", title:"パッソ白5566 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "574", life: "23.8", url:"index.php?act=staff&id=574", img:"user_data/3885.jpg", nen:"平成22年式", soukou:"82210", title:"パッソ薄紫5594 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "569", life: "23.8", url:"index.php?act=staff&id=569", img:"user_data/3742.jpg", nen:"平成24年式", soukou:"116571", title:"パッソ銀4644 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "566", life: "28.8", url:"index.php?act=staff&id=566", img:"user_data/3910.jpg", nen:"平成25年式", soukou:"98129", title:"マーチ銀4623 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "565", life: "23.8", url:"index.php?act=staff&id=565", img:"user_data/3807.jpg", nen:"平成25年式", soukou:"111079", title:"マーチ銀5578 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "558", life: "18.8", url:"index.php?act=staff&id=558", img:"user_data/3894.jpg", nen:"平成24年式", soukou:"102052", title:"ノート白4866 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "529", life: "28.8", url:"index.php?act=staff&id=529", img:"user_data/3927.jpg", nen:"平成22年式", soukou:"80924", title:"マーチ銀5588 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "521", life: "28.8", url:"index.php?act=staff&id=521", img:"user_data/3764.jpg", nen:"平成23年式", soukou:"76855", title:"ヴィッツ銀5577 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "508", life: "18.8", url:"index.php?act=staff&id=508", img:"user_data/3295.jpg", nen:"平成23年式", soukou:"109529", title:"フィット青4265 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "507", life: "28.8", url:"index.php?act=staff&id=507", img:"user_data/3395.jpg", nen:"平成26年式", soukou:"92009", title:"デミオ紺5603 マツダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "495", life: "13.8", 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: "480", life: "28.8", url:"index.php?act=staff&id=480", img:"user_data/3127.jpg", nen:"平成26年式", soukou:"106750", title:"マーチピンク5552 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "479", life: "28.8", url:"index.php?act=staff&id=479", img:"user_data/3344.jpg", nen:"平成26年式", soukou:"110785", title:"マーチ薄紫5558 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "478", life: "18.8", 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: "459", life: "18.8", url:"index.php?act=staff&id=459", img:"user_data/2429.jpg", nen:"平成23年式", soukou:"93271", title:"マーチ茶5564 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "451", life: "23.8", url:"index.php?act=staff&id=451", img:"user_data/2561.jpg", nen:"平成23年式", soukou:"114779", title:"ヴィッツ黒4893 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "448", life: "23.8", url:"index.php?act=staff&id=448", img:"user_data/2445.jpg", nen:"平成25年式", soukou:"99869", title:"ミラージュ白4162 ミツビシ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "444", life: "38.8", url:"index.php?act=staff&id=444", img:"user_data/2377.jpg", nen:"平成23年式", soukou:"111342", title:"インサイト銀5601 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "427", life: "23.8", url:"index.php?act=staff&id=427", img:"user_data/3038.jpg", nen:"平成25年式", soukou:"117270", title:"マーチ銀5531 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "425", life: "23.8", url:"index.php?act=staff&id=425", img:"user_data/2426.jpg", nen:"平成22年式", soukou:"118141", title:"キューブ茶4068 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "424", life: "23.8", url:"index.php?act=staff&id=424", img:"user_data/2908.jpg", nen:"平成23年式", soukou:"116866", title:"マーチ白5527 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "417", life: "28.8", url:"index.php?act=staff&id=417", img:"user_data/2358.jpg", nen:"平成23年式", soukou:"59264", title:"パッソ緑5595 トヨタ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "410", life: "23.8", url:"index.php?act=staff&id=410", img:"user_data/2339.jpg", nen:"平成21年式", soukou:"118019", title:"フリード銀4051 ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "406", life: "28.8", url:"index.php?act=staff&id=406", img:"user_data/2201.jpg", nen:"平成23年式", soukou:"70387", title:"フィットHV緑5503ホンダ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "401", life: "23.8", url:"index.php?act=staff&id=401", img:"user_data/2156.jpg", nen:"平成25年式", soukou:"118667", title:"マーチ茶4105 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "370", life: "28.8", url:"index.php?act=staff&id=370", img:"user_data/3041.jpg", nen:"平成25年式", soukou:"55701", title:"マーチ白4229 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "358", life: "28.8", url:"index.php?act=staff&id=358", img:"user_data/2112.jpg", nen:"平成24年式", soukou:"99039", title:"ミラージュ白5551 ミツビシ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "294", life: "28.8", url:"index.php?act=staff&id=294", img:"user_data/1845.jpg", nen:"平成25年式", soukou:"83421", title:"ミラージュ黒3885 ミツビシ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "288", life: "18.8", url:"index.php?act=staff&id=288", img:"user_data/1112.jpg", nen:"平成23年式", soukou:"120356", title:"マーチ銀3452 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "285", life: "18.8", url:"index.php?act=staff&id=285", img:"user_data/1496.jpg", nen:"平成22年式", soukou:"99656", title:"マーチ銀5614 ニッサン", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "89", life: "38.8", url:"index.php?act=staff&id=89", img:"user_data/1950.jpg", nen:"平成18年式", soukou:"172255", title:"キャラバン金5787 ニッサン", 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(); });