diff --git a/public_html/doc/install_wait_list.php b/public_html/doc/install_wait_list.php index 94cdaae..6d53992 100644 --- a/public_html/doc/install_wait_list.php +++ b/public_html/doc/install_wait_list.php @@ -241,6 +241,16 @@ function getWaitCategoryColor($cat) { default: return 'transparent'; } } +// 하드코딩 +$categoryLabels = [ + 0 => 'No Category', + 1 => 'To do list', + 2 => 'Power Wash', + 3 => 'Category 3', + 4 => 'Category 4', + 5 => 'Category 5' +]; + ?> @@ -595,7 +605,7 @@ function getWaitCategoryColor($cat) { foreach ($allCats as $i): $checked = in_array($i, $kw_categories ?? []) ? 'checked' : ''; ?> - + > @@ -757,7 +767,7 @@ function getWaitCategoryColor($cat) { border-radius:50%; display:inline-block; background:=getWaitCategoryColor($row['iw_category'])?>; - " title="Category =$row['iw_category']?>"> + " title="=htmlspecialchars($categoryLabels[$row['iw_category']] ?? '')?>"> diff --git a/public_html/doc/map.php b/public_html/doc/map.php index 6156aa9..ceafb93 100644 --- a/public_html/doc/map.php +++ b/public_html/doc/map.php @@ -741,7 +741,11 @@ function popup(){ - + + + + Existing Container Request Found + diff --git a/public_html/js/install_wait_modal.js b/public_html/js/install_wait_modal.js index 7682ff3..7f6eba7 100644 --- a/public_html/js/install_wait_modal.js +++ b/public_html/js/install_wait_modal.js @@ -16,6 +16,15 @@ const IW_CATEGORY_COLORS = { 4: '#fa9614', 5: '#9254de' }; +// 하드코딩 +const IW_CATEGORY_LABELS = { + 0: 'No Category', + 1: 'To do list', + 2: 'Power Wash', + 3: 'Category 3', + 4: 'Category 4', + 5: 'Category 5' +}; /* 슬라이드 이동 (100vw 기준) */ function goInstallWaitStep(step) { @@ -452,7 +461,7 @@ function renderCategorySelector() { wrap.innerHTML = ` ${[0,1,2,3,4,5].map(i => ` -