table {
width: 100%;
border-collapse: collapse;
}
th, td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
th {
background-color: #f2f2f2;
}
tr:nth-child(even) {
background-color: #f9f9f9;
}
베스트 10 제품
#alret-custom::after {
content: “이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.”;
white-space: pre-wrap;
font-family: ‘Noto Sans KR’, sans-serif;
font-size: 18px;
color: #d32f2f;
font-weight: 700;
text-align: center;
display: block;
margin-top: 40px;
padding: 10px;
border-top: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
margin-bottom: 30px;
}
document.addEventListener(“DOMContentLoaded”, function() {
function getCoupangAffiliateId() {
const urlParams = new URLSearchParams(window.location.search);
return urlParams.get(‘coupang’);
}
function setCoupangAffiliateIdInCookie(id) {
document.cookie = “coupangAffiliateId=” + id + “; path=/; max-age=2592000”;
}
function getCoupangAffiliateIdFromCookie() {
const name = “coupangAffiliateId=”;
const decodedCookie = decodeURIComponent(document.cookie);
const ca = decodedCookie.split(‘;’);
for(let i = 0; i {
let url = new URL(link.href);
url.searchParams.set(‘coupang’, affiliateId);
link.href = url.toString();
});
}
}
updateCoupangLinks();
const observer = new MutationObserver(() => {
updateCoupangLinks();
});
observer.observe(document.body, { childList: true, subtree: true });
});