제목 | 강아지 분양 주의할 점 - 행복한 반려생활을 위한 필수 가이드 | 작성일 | 25-03-28 00:32 |
성명 | HELLO | 회사명 | |
전화번호 | - - | 휴대폰번호 | - - |
이메일 | aaa@naver.com | ||
주소 | () | ||
홈페이지 | |||
답변방법 |
본문
목차
.book-toc
li { margin-bottom: 6pxline-height: 1.4}
.book-toc li a { color: #444 !importanttext-decoration: none !important}
.book-toc li a:visited { color: #444 !importanttext-decoration: none !important}
.book-toc li a:hover { color: #007bff !importanttext-decoration: underline !important}
.btn-rounded { transition: all 0.3s ease}
.btn-rounded:hover { transform: scale(1.1)}
table tr:first-child th { background-color: #2698ff}
document.addEventListener("DOMContentLoaded", function() {
const tocList = document.getElementById("tocList");
const headers = document.querySelectorAll(".entry-content h2, .entry-content h3");
headers.forEach(function(header, index) {
if (!header.id) { header.id = "toc-heading-" + (index + 1)}
const li = document.createElement("li");
const aTag = document.createElement("a");
aTag.setAttribute("href", "#" + header.id);
aTag.textContent = header.textContent.trim();
if (header.tagName.toLowerCase() === "h3") { li.style.marginLeft = "20px"}
li.appendChild(aTag);
tocList.appendChild(li);
});
const firstH2 = document.querySelector(".entry-content h2");
const myToc = document.getElementById("myToc");
if (firstH2 && myToc) { firstH2.parentNode.insertBefore(myToc, firstH2)}
});
이전글 | 현해환경 싱크대막힘 근본 해결은 독보적인 기술 2025-03-28 | ||
다음글 | 수원쓰리노 = (( 010 ◎ 4681 ◎ 8733 )) ●강력추천● 인계동쓰리노 ,인계동룸싸롱 2025-03-28 |