대전 판암역 용운동 피부과예약 저렴한 곳 가격 싼 곳 업체 추천 | 대전 동구 통증의학과 재활치료 한의원 비용 가격 잘하는 곳

대전 판암역 용운동 피부과예약 저렴한 곳 가격 싼 곳 업체 추천 | 대전 동구 통증의학과 재활치료 한의원 비용 가격 잘하는 곳

th.textContent); const accordionHtml = rows.map((row, index) => { const data = Array.from(row.querySelectorAll(‘td’)).map(td => td.textContent); const isFirstTwo = index < 2; const collapseId = `collapseTable{index}`; const headerId = `headingTable{index}`; const detailHtml = data.map((d, i) => { if (i === 0) return ”; // Skip the name (it’s the header) return `

{headers[i]}: {d}

`; }).join(”); return `

{detailHtml}

`; }).join(”); const tableContainer = document.querySelector(‘.comparison-table’); if (tableContainer) { const accordionDiv = document.createElement(‘div’); accordionDiv.classList.add(‘mobile-accordion’, ‘md:hidden’, ‘mt-4’); accordionDiv.innerHTML = accordionHtml; tableContainer.appendChild(accordionDiv); } } // DOMContentLoaded 대신 window.onload 후 실행 (Bootstrap CDN 로드 시간 고려) window.onload = function() { // … (existing fetchAiGeneratedText call) // Bootstrap JS 로드 후 아코디언 초기화 const script = document.createElement(‘script’); script.src = “https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js”; script.onload = initializeAccordionTable; document.head.appendChild(script); // 상단 이동 버튼 이벤트 리스너 document.querySelectorAll(‘.action-button’).forEach(button => { button.addEventListener(‘click’, () => { const target = button.textContent.includes(‘↑’) ? ‘title’ : ‘place1’; document.getElementById(target).scrollIntoView({ behavior: ‘smooth’ }); }); }); };

You may also like