Hide amiibo price ranges by default
This commit is contained in:
10
index.html
10
index.html
@@ -174,8 +174,9 @@
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: 14px;
|
||||
max-width: 970px;
|
||||
}
|
||||
|
||||
.card {
|
||||
@@ -370,6 +371,8 @@
|
||||
<script type="module">
|
||||
import AMIIBO_DB, { AMIIBO_RESALE_METADATA } from './db/amiibo.resale.db.js';
|
||||
|
||||
const SHOW_PRICE_RANGE = false;
|
||||
|
||||
const seriesNameMap = {
|
||||
'大乱闘スマッシュブラザーズシリーズ': '대난투 스매시브라더스 시리즈',
|
||||
'スーパーマリオシリーズ': '슈퍼 마리오 시리즈',
|
||||
@@ -553,6 +556,9 @@
|
||||
amiiboList.innerHTML = filtered
|
||||
.map(item => {
|
||||
const range = item.sale.priceRange;
|
||||
const priceRangeHtml = SHOW_PRICE_RANGE
|
||||
? `<div class="meta"><strong>가격 범위</strong> ${formatKRW(range.min)} ~ ${formatKRW(range.max)}</div>`
|
||||
: '';
|
||||
const notes = item.sale.conditionNotes?.length
|
||||
? `<div class="meta">${item.sale.conditionNotes.join(', ')}</div>`
|
||||
: '';
|
||||
@@ -569,7 +575,7 @@
|
||||
<span class="price">${formatKRW(item.sale.suggestedPrice)}</span>
|
||||
<span class="badge ${getConditionClass(item)}">${getConditionLabel(item)}</span>
|
||||
</div>
|
||||
<div class="meta"><strong>가격 범위</strong> ${formatKRW(range.min)} ~ ${formatKRW(range.max)}</div>
|
||||
${priceRangeHtml}
|
||||
<div class="meta"><strong>가격 기준</strong> ${getBasisLabel(item)}</div>
|
||||
<div class="meta"><strong>수량</strong> ${item.count.toLocaleString('ko-KR')}개 · <strong>소계</strong> ${formatKRW(item.sale.totalAssetValue)}</div>
|
||||
${notes}
|
||||
|
||||
Reference in New Issue
Block a user