$(function() { /*================================================================ 情報 ================================================================*/ var allList = [ { id: "1667", life: "78.8", url:"index.php?act=staff&id=1667", img:"user_data/10696.jpg", nen:"平成25年式", soukou:"27285", title:"3⃣ホンダフィットGK3銀6323【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1670", life: "63.8", url:"index.php?act=staff&id=1670", img:"user_data/10699.jpg", nen:"平成26年式", soukou:"65031", title:"2⃣ミツビシミラージュS銀6351【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1671", life: "108.8", url:"index.php?act=staff&id=1671", img:"user_data/10700.jpg", nen:"令和1年式", soukou:"24428", title:"3⃣ミラージュブラックエディション3803仕入→神奈川", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1672", life: "108.8", url:"index.php?act=staff&id=1672", img:"user_data/10701.jpg", nen:"令和1年式", soukou:"32504", title:"3⃣ミラージュグレー3128ブラックエディション仕入神奈川", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1673", life: "108.8", url:"index.php?act=staff&id=1673", img:"user_data/10702.jpg", nen:"令和1年", soukou:"29946", title:"3⃣ミラージュ白3801ブラックエディション仕入神奈川", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1674", life: "178.8", url:"index.php?act=staff&id=1674", img:"user_data/10704.jpg", nen:"令和4年式", soukou:"10", title:"3⃣ミツビシミラージュM6341仕入→沖縄", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1675", life: "178.8", url:"index.php?act=staff&id=1675", img:"user_data/10705.jpg", nen:"令和4年式", soukou:"10", title:"3⃣ミツビシミラージュM6340仕入→沖縄", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1676", life: "178.8", url:"index.php?act=staff&id=1676", img:"user_data/10706.jpg", nen:"令和4年式", soukou:"529", title:"3⃣ミツビシミラージュM6339仕入→沖縄", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1677", life: "178.8", url:"index.php?act=staff&id=1677", img:"user_data/10707.jpg", nen:"令和4年式", soukou:"10", title:"3⃣ミツビシミラージュM6338仕入→沖縄", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1678", life: "178.8", url:"index.php?act=staff&id=1678", img:"user_data/10708.jpg", nen:"令和4年式", soukou:"10", title:"3⃣ミツビシミラージュM6337仕入→沖縄", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1680", life: "63.8", url:"index.php?act=staff&id=1680", img:"user_data/10711.jpg", nen:"平成26年式", soukou:"53805", title:"2⃣スズキソリオGリミテッド銀6361【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1683", life: "98.8", url:"index.php?act=staff&id=1683", img:"user_data/10715.jpg", nen:"平成25年式", soukou:"60026", title:"3⃣ホンダフィットHV青6372【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1687", life: "108.8", url:"index.php?act=staff&id=1687", img:"user_data/10804.jpg", nen:"平成26年式", soukou:"59931", title:"3⃣フィットHV赤6440【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1690", life: "98.8", url:"index.php?act=staff&id=1690", img:"user_data/10956.jpg", nen:"平成25年式", soukou:"22331", title:"2⃣トヨタアクアS黄色6451【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1691", life: "88.8", url:"index.php?act=staff&id=1691", img:"user_data/10951.jpg", nen:"平成26年式", soukou:"16201", title:"3⃣ホンダフィットGK3金6441【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1692", life: "98.8", url:"index.php?act=staff&id=1692", img:"user_data/10964.jpg", nen:"平成27年式", soukou:"54597", title:"3⃣ホンダフィットGK3銀6456【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1707", life: "84.8", url:"index.php?act=staff&id=1707", img:"user_data/10952.jpg", nen:"平成24年式", soukou:"44861", title:"2⃣トヨタアクアS橙6472【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1709", life: "78.8", url:"index.php?act=staff&id=1709", img:"user_data/10957.jpg", nen:"平成25年式", soukou:"31851", title:"3⃣ホンダフィットGK3銀6471【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1725", life: "78.8", url:"index.php?act=staff&id=1725", img:"user_data/10855.jpg", nen:"平成25年式", soukou:"49,000", title:"3⃣ホンダフィットGK3銀6484【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1732", life: "78.8", url:"index.php?act=staff&id=1732", img:"user_data/10960.jpg", nen:"平成25年式", soukou:"38981", title:"3⃣ホンダフィットGK3金6485【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1745", life: "78.8", url:"index.php?act=staff&id=1745", img:"user_data/10865.jpg", nen:"平成25年式", soukou:"52441", title:"3⃣ホンダフィットGK3銀6486【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1805", life: "54.8", url:"index.php?act=staff&id=1805", img:"user_data/10839.jpg", nen:"平成24年式", soukou:"65653", title:"2⃣ミツビシミラージュG銀6525【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1853", life: "59.8", url:"index.php?act=staff&id=1853", img:"user_data/10744.jpg", nen:"平成24年式", soukou:"38645", title:"2⃣ミツビシミラージュG赤6531【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1884", life: "178.8", url:"index.php?act=staff&id=1884", img:"user_data/10805.jpg", nen:"令和", soukou:"2000", title:"3⃣ミツビシミラージュM6448仕入→沖縄", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1885", life: "178.8", url:"index.php?act=staff&id=1885", img:"user_data/10806.jpg", nen:"令和4年式", soukou:"800", title:"3⃣ミツビシミラージュM6447仕入→沖縄", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1887", life: "178.8", url:"index.php?act=staff&id=1887", img:"user_data/10861.jpg", nen:"令和4年式", soukou:"200", title:"3⃣ミツビシミラージュM6445仕入→沖縄", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1888", life: "178.8", url:"index.php?act=staff&id=1888", img:"user_data/10838.jpg", nen:"令和4年式", soukou:"1944", title:"3⃣ミツビシミラージュM6446仕入→沖縄", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1889", life: "178.8", url:"index.php?act=staff&id=1889", img:"user_data/10854.jpg", nen:"令和4年式", soukou:"600", title:"3⃣ミツビシミラージュM6450仕入→沖縄", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1651", life: "54.8", url:"index.php?act=staff&id=1651", img:"user_data/10659.jpg", nen:"平成24年式", soukou:"54132", title:"2⃣ミツビシミラージュM黒6263【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1650", life: "58.8", url:"index.php?act=staff&id=1650", img:"user_data/10658.jpg", nen:"平成25年式", soukou:"69907", title:"2⃣ノートX_DIG-S白6267【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1643", life: "44.8", url:"index.php?act=staff&id=1643", img:"user_data/10682.jpg", nen:"平成24年式", soukou:"56452", title:"2⃣ミラージュG パープル6305【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1642", life: "54.8", url:"index.php?act=staff&id=1642", img:"user_data/10681.jpg", nen:"平成24年式", soukou:"74965", title:"2⃣ミツビシミラージュM銀6291【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1641", life: "63.8", url:"index.php?act=staff&id=1641", img:"user_data/10680.jpg", nen:"平成25年式", soukou:"25911", title:"2⃣ミツビシミラージュM銀6292【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1640", life: "63.8", url:"index.php?act=staff&id=1640", img:"user_data/10679.jpg", nen:"平成26年式", soukou:"66997", title:"2⃣ミツビシミラージュG赤6260【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1639", life: "88.8", url:"index.php?act=staff&id=1639", img:"user_data/10678.jpg", nen:"平成26年式", soukou:"42132", title:"3⃣ホンダフィットGK3白6295【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1638", life: "88.8", url:"index.php?act=staff&id=1638", img:"user_data/10677.jpg", nen:"平成26年式", soukou:"49761", title:"3⃣ホンダフィットGK3銀6296【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1637", life: "88.8", url:"index.php?act=staff&id=1637", img:"user_data/10676.jpg", nen:"平成26年式", soukou:"49241", title:"3⃣ホンダフィットGK3銀6319【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1629", life: "88.8", url:"index.php?act=staff&id=1629", img:"user_data/10126.jpg", nen:"平成26年式", soukou:"63082", title:"3⃣ホンダフィットGK3銀6127【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1628", life: "108.8", url:"index.php?act=staff&id=1628", img:"user_data/10121.jpg", nen:"平成26年式", soukou:"68628", title:"3⃣ホンダフィットHV黒6111【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1626", life: "88.8", url:"index.php?act=staff&id=1626", img:"user_data/10123.jpg", nen:"平成26年式", soukou:"44929", title:"3⃣ホンダフィットGK3銀6125【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1625", life: "108.8", url:"index.php?act=staff&id=1625", img:"user_data/10119.jpg", nen:"平成28年式", soukou:"60404", title:"3⃣ホンダフィットGK3銀6109【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1624", life: "98.8", url:"index.php?act=staff&id=1624", img:"user_data/10127.jpg", nen:"平成27年式", soukou:"40571", title:"3⃣ホンダフィットGK3銀6101【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1622", life: "128.8", url:"index.php?act=staff&id=1622", img:"user_data/10115.jpg", nen:"平成28年式", soukou:"67082", title:"3⃣トヨタアクアS銀6096【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1621", life: "98.8", url:"index.php?act=staff&id=1621", img:"user_data/10113.jpg", nen:"平成25年式", soukou:"69421", title:"3⃣ホンダフィットHV白6090【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1620", life: "98.8", url:"index.php?act=staff&id=1620", img:"user_data/10108.jpg", nen:"平成27年式", soukou:"58606", title:"3⃣ホンダフィットGK3銀6358【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1619", life: "128.8", url:"index.php?act=staff&id=1619", img:"user_data/10114.jpg", nen:"平成28年式", soukou:"72976", title:"3⃣トヨタアクア S銀6093【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1615", life: "128.8", url:"index.php?act=staff&id=1615", img:"user_data/10104.jpg", nen:"平成28年式", soukou:"52911", title:"3⃣トヨタアクア S白6108【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1613", life: "128.8", url:"index.php?act=staff&id=1613", img:"user_data/10105.jpg", nen:"平成28年式", soukou:"74065", title:"3⃣トヨタアクアL銀6092【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1612", life: "78.8", url:"index.php?act=staff&id=1612", img:"user_data/10092.jpg", nen:"平成25年式", soukou:"57351", title:"3⃣ホンダフィットGK3赤6089【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1611", life: "98.8", url:"index.php?act=staff&id=1611", img:"user_data/10097.jpg", nen:"平成27年式", soukou:"41385", title:"3⃣ホンダフィットGK銀6091【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1608", life: "88.8", url:"index.php?act=staff&id=1608", img:"user_data/10096.jpg", nen:"平成26年式", soukou:"36899", title:"3⃣トヨタアクアSオレンジ6086【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1607", life: "128.8", url:"index.php?act=staff&id=1607", img:"user_data/10111.jpg", nen:"平成28年式", soukou:"64569", title:"3⃣トヨタアクアL銀6094【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1606", life: "78.8", url:"index.php?act=staff&id=1606", img:"user_data/10106.jpg", nen:"平成25年式", soukou:"42458", title:"3⃣ホンダフィットGK3赤6084【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1601", life: "54.8", url:"index.php?act=staff&id=1601", img:"user_data/10110.jpg", nen:"平成24年式", soukou:"11732", title:"1⃣ミツビシミラージュG青6141【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1599", life: "128.8", url:"index.php?act=staff&id=1599", img:"user_data/10094.jpg", nen:"平成28年式", soukou:"64083", title:"3⃣トヨタアクアS銀6129【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1598", life: "88.8", url:"index.php?act=staff&id=1598", img:"user_data/10078.jpg", nen:"平成26年式", soukou:"62851", title:"3⃣ホンダフィットGK3黒6106【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1597", life: "88.8", url:"index.php?act=staff&id=1597", img:"user_data/10082.jpg", nen:"平成26年式", soukou:"60540", title:"3⃣ホンダフィットGK3白6088【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1596", life: "108.8", url:"index.php?act=staff&id=1596", img:"user_data/10077.jpg", nen:"平成26年式", soukou:"68170", title:"3⃣ホンダフィットHV白6078【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1595", life: "128.8", url:"index.php?act=staff&id=1595", img:"user_data/10076.jpg", nen:"平成28年式", soukou:"26645", title:"3⃣ホンダフィットHV銀6117【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1594", life: "118.8", url:"index.php?act=staff&id=1594", img:"user_data/10109.jpg", nen:"平成28年式", soukou:"70970", title:"3⃣トヨタアクアS銀6103【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1593", life: "128.8", url:"index.php?act=staff&id=1593", img:"user_data/10095.jpg", nen:"平成28年式", soukou:"41545", title:"3⃣トヨタアクアS白6100【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1589", life: "88.8", url:"index.php?act=staff&id=1589", img:"user_data/10079.jpg", nen:"平成26年式", soukou:"12659", title:"3⃣ホンダフィットGK3銀6114【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1588", life: "88.8", url:"index.php?act=staff&id=1588", img:"user_data/10088.jpg", nen:"平成26年式", soukou:"56549", title:"3⃣ホンダフィットGK3銀6354【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1587", life: "98.8", url:"index.php?act=staff&id=1587", img:"user_data/10089.jpg", nen:"平成27年式", soukou:"57851", title:"3⃣ホンダフィットGK3青6107【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1586", life: "98.8", url:"index.php?act=staff&id=1586", img:"user_data/10087.jpg", nen:"平成27年式", soukou:"61590", title:"3⃣ホンダフィットGK3銀6075【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1585", life: "88.8", url:"index.php?act=staff&id=1585", img:"user_data/10085.jpg", nen:"平成26年式", soukou:"68939", title:"3⃣ホンダフィットGK3白6116【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1584", life: "88.8", url:"index.php?act=staff&id=1584", img:"user_data/10091.jpg", nen:"平成26年式", soukou:"20244", title:"3⃣ホンダフィットGK3白6076【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1583", life: "108.8", url:"index.php?act=staff&id=1583", img:"user_data/10086.jpg", nen:"平成28年式", soukou:"61130", title:"3⃣ホンダフィットGK3白6099【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1582", life: "128.8", url:"index.php?act=staff&id=1582", img:"user_data/10083.jpg", nen:"平成28年式", soukou:"43185", title:"3⃣ホンダフィットHV白6095【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1581", life: "88.8", url:"index.php?act=staff&id=1581", img:"user_data/10072.jpg", nen:"平成26年式", soukou:"67131", title:"3⃣ホンダフィットGK3黒6074【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1580", life: "128.8", url:"index.php?act=staff&id=1580", img:"user_data/10070.jpg", nen:"平成28年式", soukou:"70459", title:"3⃣ホンダフィットHV銀6112【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1578", life: "128.8", url:"index.php?act=staff&id=1578", img:"user_data/10067.jpg", nen:"平成28年式", soukou:"65731", title:"3⃣ホンダフィットHV銀6115【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1577", life: "128.8", url:"index.php?act=staff&id=1577", img:"user_data/10075.jpg", nen:"平成28年式", soukou:"73826", title:"3⃣ホンダフィットHV銀6124【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1576", life: "128.8", url:"index.php?act=staff&id=1576", img:"user_data/10068.jpg", nen:"平成28年式", soukou:"75179", title:"3⃣ホンダフィットHV銀6077【9/2】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1575", life: "108.8", url:"index.php?act=staff&id=1575", img:"user_data/10071.jpg", nen:"平成27年式", soukou:"35785", title:"3⃣トヨタアクアG黄色6355【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1574", life: "108.8", url:"index.php?act=staff&id=1574", img:"user_data/10074.jpg", nen:"平成27年式", soukou:"71133", title:"3⃣ホンダフィットHV黄色6068【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1573", life: "98.8", url:"index.php?act=staff&id=1573", img:"user_data/10073.jpg", nen:"平成25年式", soukou:"72840", title:"3⃣ホンダフィットHV黄色6072【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1571", life: "118.8", url:"index.php?act=staff&id=1571", img:"user_data/10063.jpg", nen:"平成27年式", soukou:"65599", title:"3⃣ホンダフィットHV銀6073【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1570", life: "128.8", url:"index.php?act=staff&id=1570", img:"user_data/10065.jpg", nen:"平成28年式", soukou:"63798", title:"3⃣ホンダフィットHV6069【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1569", life: "98.8", url:"index.php?act=staff&id=1569", img:"user_data/10066.jpg", nen:"平成25年式", soukou:"33631", title:"3⃣ホンダフィットHV黄色6062【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1564", life: "78.8", url:"index.php?act=staff&id=1564", img:"user_data/10057.jpg", nen:"平成28年式", soukou:"24197", title:"2⃣トヨタパッソ 銀6154【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1563", life: "128.8", url:"index.php?act=staff&id=1563", img:"user_data/10064.jpg", nen:"平成28年式", soukou:"37030", title:"3⃣トヨタアクアS水色6064【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1562", life: "58.8", url:"index.php?act=staff&id=1562", img:"user_data/10056.jpg", nen:"平成24年式", soukou:"65610", title:"2⃣ミツビシミラージュG青6146【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1555", life: "88.8", url:"index.php?act=staff&id=1555", img:"user_data/10050.jpg", nen:"平成26年式", soukou:"55996", title:"3⃣ホンダフィットGK3白6071【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1554", life: "78.8", url:"index.php?act=staff&id=1554", img:"user_data/10049.jpg", nen:"平成25年式", soukou:"60915", title:"3⃣ホンダフィットGK3青6060【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1552", life: "128.8", url:"index.php?act=staff&id=1552", img:"user_data/10048.jpg", nen:"平成28年式", soukou:"52208", title:"3⃣ホンダフィットHVGP5白6065【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1551", life: "73.8", url:"index.php?act=staff&id=1551", img:"user_data/10047.jpg", nen:"平成28年式", soukou:"56254", title:"4⃣ニッサンラティオX6174銀 【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1550", life: "128.8", url:"index.php?act=staff&id=1550", img:"user_data/10046.jpg", nen:"平成28年式", soukou:"40784", title:"3⃣トヨタアクアL銀6081【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1549", life: "118.8", url:"index.php?act=staff&id=1549", img:"user_data/10045.jpg", nen:"平成27年式", soukou:"67738", title:"3⃣トヨタアクアS ピンク6054【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1548", life: "58.8", url:"index.php?act=staff&id=1548", img:"user_data/10044.jpg", nen:"平成25年式", soukou:"17583", title:"2⃣ミツビシミラージュM銀6144【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1545", life: "88.8", url:"index.php?act=staff&id=1545", img:"user_data/10042.jpg", nen:"平成26年式", soukou:"58322", title:"3⃣ホンダフィットGK3銀6056【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1544", life: "78.8", url:"index.php?act=staff&id=1544", img:"user_data/10041.jpg", nen:"平成28年式", soukou:"45322", title:"トヨタパッソ ブルー6156【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1542", life: "54.8", url:"index.php?act=staff&id=1542", img:"user_data/10038.jpg", nen:"平成24年式", soukou:"31081", title:"2⃣ミツビシミラージュG赤6143【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1541", life: "58.8", url:"index.php?act=staff&id=1541", img:"user_data/10037.jpg", nen:"平成25年式", soukou:"51233", title:"2⃣ミツビシミラージュG銀6051【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1540", life: "58.8", url:"index.php?act=staff&id=1540", img:"user_data/10036.jpg", nen:"平成25年式", soukou:"46628", title:"2⃣ミツビシミラージュG銀6151【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1539", life: "78.8", url:"index.php?act=staff&id=1539", img:"user_data/10020.jpg", nen:"平成28年式", soukou:"55898", title:"2⃣トヨタパッソX銀6155【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1536", life: "58.8", url:"index.php?act=staff&id=1536", img:"user_data/10024.jpg", nen:"平成25年式", soukou:"51011", title:"2⃣ミツビシミラージュG銀6052【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1529", life: "78.8", url:"index.php?act=staff&id=1529", img:"user_data/10030.jpg", nen:"平成28年式", soukou:"74998", title:"3⃣ミツビシミラージュM白6145【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1528", life: "73.8", url:"index.php?act=staff&id=1528", img:"user_data/10032.jpg", nen:"平成27年式", soukou:"72477", title:"2⃣ミツビシミラージュGグレー6148【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1524", life: "58.8", url:"index.php?act=staff&id=1524", img:"user_data/10019.jpg", nen:"平成24年式", soukou:"44099", title:"2⃣ミツビシミラージュM黒6152【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1519", life: "78.8", url:"index.php?act=staff&id=1519", img:"user_data/10015.jpg", nen:"平成28年式", soukou:"22810", title:"2⃣トヨタパッソX銀6136【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1410", life: "128.8", url:"index.php?act=staff&id=1410", img:"user_data/9606.jpg", nen:"平成28年式", soukou:"53363", title:"3⃣ホンダフィットHV銀6053【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1405", life: "118.8", url:"index.php?act=staff&id=1405", img:"user_data/9598.jpg", nen:"平成29年式", soukou:"38745", title:"4⃣トヨタパッソ XS赤5981【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1390", life: "54.8", url:"index.php?act=staff&id=1390", img:"user_data/9590.jpg", nen:"平成24年式", soukou:"45573", title:"2⃣ミツビシミラージュG白5974【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1375", life: "138.8", url:"index.php?act=staff&id=1375", img:"user_data/9567.jpg", nen:"平成30年式", soukou:"55712", title:"4⃣トヨタタンクXS青5952【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1361", life: "128.8", url:"index.php?act=staff&id=1361", img:"user_data/9489.jpg", nen:"平成28年式", soukou:"46324", title:"4⃣ホンダフィットHV 5944【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1360", life: "148.8", url:"index.php?act=staff&id=1360", img:"user_data/9488.jpg", nen:"平成30年式", soukou:"19048", title:"4⃣ホンダフィットHV 5941【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1338", life: "58.8", url:"index.php?act=staff&id=1338", img:"user_data/9327.jpg", nen:"平成25年式", soukou:"67006", title:"2⃣ミツビシミラージュG青5792【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1262", life: "68.8", url:"index.php?act=staff&id=1262", img:"user_data/8717.jpg", nen:"平成25年式", soukou:"55660", title:"ノートX 赤ニッサン6729仕入先→沖縄", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1256", life: "138.8", url:"index.php?act=staff&id=1256", img:"user_data/8724.jpg", nen:"令和1年式", soukou:"22111", title:"4⃣ニッサンノートXグレー3904仕入先→福岡", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1244", life: "138.8", url:"index.php?act=staff&id=1244", img:"user_data/8509.jpg", nen:"令和1年式", soukou:"17713", title:"4⃣ニッサンノートXグレー3946仕入先→沖縄", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1210", life: "78.8", url:"index.php?act=staff&id=1210", img:"user_data/8234.jpg", nen:"平成28年式", soukou:"64182", title:"インプレッサスポーツ1.6Iグレー920仕入先→愛知", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1206", life: "78.8", url:"index.php?act=staff&id=1206", img:"user_data/8238.jpg", nen:"平成25年式", soukou:"67412", title:"3⃣トヨタアクアL白5684【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1205", life: "128.8", url:"index.php?act=staff&id=1205", img:"user_data/8231.jpg", nen:"平成30年式", soukou:"53109", title:"4⃣ニッサンノートHV5708【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1204", life: "88.8", url:"index.php?act=staff&id=1204", img:"user_data/8230.jpg", nen:"平成28年式", soukou:"53615", title:"3⃣ニッサンノートXグレー5706【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1203", life: "88.8", url:"index.php?act=staff&id=1203", img:"user_data/8224.jpg", nen:"平成28年式", soukou:"73059", title:"3⃣ニッサンノート白X5707【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1197", life: "118.8", url:"index.php?act=staff&id=1197", img:"user_data/7931.jpg", nen:"平成30年式", soukou:"49555", title:"4⃣ニッサンノートX水色5693【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1179", life: "138.8", url:"index.php?act=staff&id=1179", img:"user_data/7737.jpg", nen:"平成31年式", soukou:"30147", title:"4⃣ニッサンノートX白5660【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1138", life: "78.8", url:"index.php?act=staff&id=1138", img:"user_data/7688.jpg", nen:"平成24年式", soukou:"74000", title:"3⃣トヨタアクアS シルバー5628【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1136", life: "78.8", url:"index.php?act=staff&id=1136", img:"user_data/7686.jpg", nen:"平成25年式", soukou:"40216", title:"3⃣ホンダフィットGK3銀6135【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1135", life: "98.8", url:"index.php?act=staff&id=1135", img:"user_data/7685.jpg", nen:"平成27年式", soukou:"64000", title:"3⃣ホンダフィットGK3 5629【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1105", life: "138.8", url:"index.php?act=staff&id=1105", img:"user_data/7579.jpg", nen:"平成30年式", soukou:"51525", title:"4⃣ホンダフィットGK3 青5658【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1104", life: "138.8", url:"index.php?act=staff&id=1104", img:"user_data/7578.jpg", nen:"平成30年式", soukou:"48339", title:"4⃣ホンダフィットGK3青5657【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1056", life: "98.8", url:"index.php?act=staff&id=1056", img:"user_data/7142.jpg", nen:"平成29年式", soukou:"43873", title:"4⃣トヨタカローラアクシオ1.3X5452黒【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "990", life: "88.8", url:"index.php?act=staff&id=990", img:"user_data/6942.jpg", nen:"平成25年式", soukou:"44571", title:"3⃣トヨタアクアG赤5713【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "965", life: "108.8", url:"index.php?act=staff&id=965", img:"user_data/6816.jpg", nen:"平成26年式", soukou:"50847", title:"3⃣ホンダフィットHV銀【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "943", life: "118.8", url:"index.php?act=staff&id=943", img:"user_data/6792.jpg", nen:"平成27年式", soukou:"77899", title:"3⃣ホンダフィットHV白6246【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "872", life: "78.8", url:"index.php?act=staff&id=872", img:"user_data/6252.jpg", nen:"平成26年式", soukou:"79000", title:"3⃣トヨタアクア銀5208【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "771", life: "68.8", url:"index.php?act=staff&id=771", img:"user_data/4909.jpg", nen:"平成26年式", soukou:"47704", title:"2⃣ニッサンノート白5598【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1879", life: "59.8", url:"index.php?act=staff&id=1879", img:"./img/nophoto.png", nen:"平成26年式", soukou:"11,000", title:"2⃣ニッサンノートX水色6563【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1880", life: "54.8", url:"index.php?act=staff&id=1880", img:"./img/nophoto.png", nen:"平成25年式", soukou:"49,000", title:"2⃣トヨタパッソX クツロギ6562【価格改定】", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1893", life: "86.8", url:"index.php?act=staff&id=1893", img:"./img/nophoto.png", nen:"平成28年式", soukou:"48,038", title:"3⃣ニッサンノート X Vセレクション+セーフティⅡ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1894", life: "138.8", url:"index.php?act=staff&id=1894", img:"./img/nophoto.png", nen:"平成29年式", soukou:"43,820", title:"3⃣トヨタヴィッツ パール HYBRID F", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1896", life: "98.8", url:"index.php?act=staff&id=1896", img:"./img/nophoto.png", nen:"平成28年式", soukou:"50,000", title:"3⃣ホンダフィット13G・Lパッケージ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1897", life: "144.8", url:"index.php?act=staff&id=1897", img:"./img/nophoto.png", nen:"令和1年", soukou:"29,000", title:"3⃣ダイハツトール ワイン Gリミテッド2SA3", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1898", life: "158.8", url:"index.php?act=staff&id=1898", img:"./img/nophoto.png", nen:"令和2年", soukou:"12,000", title:"3⃣スズキソリオ ブルー ハイブリッドMX", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1900", life: "148.8", url:"index.php?act=staff&id=1900", img:"./img/nophoto.png", nen:"平成29年式", soukou:"53,000", title:"3⃣ニッサンノートeパワー グレー X", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1901", life: "128.8", url:"index.php?act=staff&id=1901", img:"./img/nophoto.png", nen:"平成27年式", soukou:"16,000", title:"3⃣ホンダフィット ブルー 13G・Fパッケージ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1902", life: "98.8", url:"index.php?act=staff&id=1902", img:"./img/nophoto.png", nen:"平成26年式", soukou:"22,000", title:"3⃣ホンダフィット シルバー 13G", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1905", life: "98.8", url:"index.php?act=staff&id=1905", img:"./img/nophoto.png", nen:"平成28年式", soukou:"61,000", title:"3⃣スズキソリオG ブルー", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1906", life: "98.8", url:"index.php?act=staff&id=1906", img:"./img/nophoto.png", nen:"平成29年式", soukou:"32,000", title:"3⃣トヨタパッソX ホワイト", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1907", life: "98.8", url:"index.php?act=staff&id=1907", img:"./img/nophoto.png", nen:"平成29年式", soukou:"38,000", title:"3⃣トヨタパッソX ホワイト", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1909", life: "83.8", url:"index.php?act=staff&id=1909", img:"./img/nophoto.png", nen:"平成28年式", soukou:"17,000", title:"2⃣トヨタパッソX ベージュ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1910", life: "128.8", url:"index.php?act=staff&id=1910", img:"./img/nophoto.png", nen:"平成28年式", soukou:"84,000", title:"3⃣トヨタアクア L シルバー", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1912", life: "108.8", url:"index.php?act=staff&id=1912", img:"./img/nophoto.png", nen:"平成29年式", soukou:"6,760", title:"3⃣トヨタヴィッツ ジュエラ ピンク", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1914", life: "128.8", url:"index.php?act=staff&id=1914", img:"./img/nophoto.png", nen:"平成29年式", soukou:"22,925※", title:"3⃣ニッサンノートeパワー メダリスト オレンジ", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1915", life: "108.8", url:"index.php?act=staff&id=1915", img:"./img/nophoto.png", nen:"平成29年式", soukou:"17,000", title:"3⃣ニッサンノートX シルバー", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1916", life: "138.8", url:"index.php?act=staff&id=1916", img:"./img/nophoto.png", nen:"平成29年式", soukou:"20,000", title:"3⃣ホンダフィットHV L ホンダセンシング ブルー", sold:"", new:"", tag: ["新着","販売中","","AT",""], description: "tesut" }, { id: "1920", life: "128.8", url:"index.php?act=staff&id=1920", img:"./img/nophoto.png", nen:"平成29年式", soukou:"45,000", title:"3⃣トヨタアクアS パール", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1921", life: "138.8", url:"index.php?act=staff&id=1921", img:"./img/nophoto.png", nen:"平成28年式", soukou:"27,000", title:"3⃣トヨタアクアS スマートエントリーPKG レッド", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1925", life: "64.8", url:"index.php?act=staff&id=1925", img:"./img/nophoto.png", nen:"平成26年式", soukou:"69,000", title:"2⃣ニッサンキューブ4WD15X Vセレクション", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1927", life: "128.8", url:"index.php?act=staff&id=1927", img:"./img/nophoto.png", nen:"平成29年式", soukou:"53,000", title:"3⃣ニッサンノートe-POWER X オレンジ", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1928", life: "128.8", url:"index.php?act=staff&id=1928", img:"./img/nophoto.png", nen:"平成29年式", soukou:"48,654", title:"3⃣ニッサンノートe-POWER グレー", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1929", life: "128.8", url:"index.php?act=staff&id=1929", img:"./img/nophoto.png", nen:"平成29年式", soukou:"39,624", title:"3⃣ニッサンノートe-POWER グレー", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1930", life: "98.8", url:"index.php?act=staff&id=1930", img:"./img/nophoto.png", nen:"平成28年式", soukou:"46,760", title:"3⃣ニッサンノート シルバー", sold:"", new:"", tag: ["","販売中","","AT",""], description: "tesut" }, { id: "1931", life: "128.8", url:"index.php?act=staff&id=1931", img:"./img/nophoto.png", nen:"平成27年式", soukou:"48,725", title:"3⃣ホンダフィットHV パール", 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(); });