본문 바로가기
반응형

마케팅&트렌드/트렌드 이슈14

실시간 인기 검색어 (2025년 1월 21일) 주제 시각자료 실시간 인기 검색어 (2025년 1월 21일) 2025.01.20 - [마케팅|트렌드/검색어 트렌드] - 실시간 인기 검색어 동향 (2025년 1월 20일)실시간 검색어 트렌드 (2025년 1월 21일)1. 윤석열 헌재 탄핵심판 🏛️윤석열 대통령의 헌법재판소 탄핵 심판 관련 소식이 뜨거운 관심을 받고 있습니다. 헌재에서 다뤄지는 이 사건은 대통령의 정책 집행 및 헌법 수호 여부를 두고 진행 중이며, 여야 간의 격렬한 대립이 계속되고 있습니다. 정치적 긴장감이 높은 이슈로, 앞으로의 판결 결과와 영향이 주목됩니다.2. 尹 자유민주주의 신념 ✍️윤 대통령의 자유민주주의 신념에 대한 발언이 화제가 되고 있습니다. 자유민주주의의 개념과 그 실천에 대해 다양한 의견이 오가고 있습니다.3. 김하성 이정후 샌프란시스코 ⚾MLB 팬들의 눈길을 사로잡는 이슈! 김.. 2025. 1. 21.
실시간 인기 검색어 (2025년 1월 20일) 주제 시각자료 실시간 인기 검색어 (2025년 1월 20일) 📈 급상승 키워드#이재준결혼첫사랑 🔼배우 이재준의 첫사랑과의 결혼 소식이 화제. 팬들과 네티즌의 큰 관심을 받고 있으며 관련 검색량 급등.#검은수녀들송혜교 🔼송혜교 주연의 신작 영화 검은 수녀들이 예고편 공개로 화제를 모으며 관심 폭발.#신문선정몽규징계 🔼대한축구협회 회장 선거 이슈와 관련해 신문선 후보의 정몽규 회장 징계 촉구 발언이 화제가 되고 있음.⚖️ 안정적 흐름 키워드#코스피약보합마감코스피 지수가 약보합세로 마감하며 주식 시장 관련 키워드가 꾸준한 관심을 받고 있음.관련 키워드: #강보합 #코스닥 #레버리지 #씨젠#토트넘감독경질토트넘의 감독 교체설이 축구 팬들 사이에서 꾸준한 이슈.#스타벅스가격인상스타벅스 음료와 원두 가격 인상이 발표되며 커피 애호가들의 관심이 이어지는 중.📉 하락세 .. 2025. 1. 20.
반응형

setTimeout(function () { const dragSensitivity = 0.55; // 드래그 민감도 const clickTolerance = 0; // 클릭 간주 기준 (px), 0: 클릭 시 이동 안함. 클릭 시 이동하려면 1~3값 설정 고려. const dragRatioThreshold = 0.55; // 배너 너비 대비 드래그 비율, 배너 드래그 후 드롭 시. const newWindow = 1; // 1: 새 창, 0: 현재 창 const bannerConfigs = [ { selector: '.sliding-banner-300', width: 300, height: 300, id: '940041', trackingCode: 'AF2787934', // 본인의 추적 코드로 대체 subId: '', tsource: '', background: 'https://tistory1.daumcdn.net/tistory/8074023/skin/images/600x600-back2.jpg', cover: 'https://tistory1.daumcdn.net/tistory/8074023/skin/images/WOW-30Ox25O-cover-left.png', arrowIcon: 'https://tistory1.daumcdn.net/tistory/8074023/skin/images/arrowbtn.png', dragDirection: 'left' }, { selector: '.sliding-banner-150', width: 320, height: 150, id: '940041', trackingCode: 'AF2787934', // 본인의 추적 코드로 대체 subId: '', tsource: '', background: 'https://tistory1.daumcdn.net/tistory/8074023/skin/images/640x300-back2.jpg', cover: 'https://tistory1.daumcdn.net/tistory/8074023/skin/images/WOW-32Ox15O-cover-left.png', arrowIcon: 'https://tistory1.daumcdn.net/tistory/8074023/skin/images/arrowbtn.png', dragDirection: 'left' }, { selector: '.sliding-banner-250', width: 300, height: 250, id: '940041', trackingCode: 'AF2787934', // 본인의 추적 코드로 대체 subId: '', tsource: '', background: 'https://tistory1.daumcdn.net/tistory/8074023/skin/images/600x500-back2.jpg', cover: 'https://tistory1.daumcdn.net/tistory/8074023/skin/images/WOW-30Ox25O-cover-left.png', arrowIcon: 'https://tistory1.daumcdn.net/tistory/8074023/skin/images/arrowbtn.png', dragDirection: 'left' }, { selector: '.sliding-banner-280', width: 336, height: 280, id: '940041', trackingCode: 'AF2787934', // 본인의 추적 코드로 대체 subId: '', tsource: '', background: 'https://tistory1.daumcdn.net/tistory/8074023/skin/images/600x500-back3.jpg', cover: 'https://tistory1.daumcdn.net/tistory/8074023/skin/images/WOW-30Ox25O-cover-right.png', arrowIcon: 'https://tistory1.daumcdn.net/tistory/8074023/skin/images/arrow-right.png', dragDirection: 'right' } ]; const coupangLink = 'https://link.coupang.com/a/c2PToW'; // 본인의 간편 링크로 대체 📍 function openLink(link) { if (newWindow) { window.open(link, '_blank'); } else { history.replaceState(null, null, window.location.href); window.location.href = link; } } function generateIframeURL(config) { return `https://ads-partners.coupang.com/widgets.html?id=${config.id}&template=carousel&trackingCode=${config.trackingCode}&subId=${encodeURIComponent(config.subId || '')}&width=${config.width}&height=${config.height}&tsource=${encodeURIComponent(config.tsource || '')}`; } function createBanner(config) { const iframeURL = generateIframeURL(config); const wrapper = document.createElement('div'); wrapper.innerHTML = `
`; return wrapper; } // trigger event update function setupDragEvents(dragTarget, animatedBanner, threshold, link, direction) { let startX = 0, diffX = 0, triggered = false, isDragging = false; function getClientX(e) { return e.type.includes('touch') ? e.touches[0].clientX : e.clientX; } function triggerOnce() { if (triggered) return; triggered = true; animatedBanner.style.transform = 'translateX(0)'; animatedBanner.classList.add('active'); openLink(link); } function startDrag(e) { if (e.type.startsWith('mouse') && e.button !== 0) return; isDragging = true; startX = getClientX(e); diffX = 0; triggered = false; animatedBanner.classList.remove('active'); e.preventDefault(); } function onDrag(e) { if (!isDragging) return; const currentX = getClientX(e); diffX = currentX - startX; if ((direction === 'left' && diffX < 0) || (direction === 'right' && diffX > 0)) { animatedBanner.style.transform = `translateX(${diffX}px)`; if (Math.abs(diffX) > threshold) { triggerOnce(); } e.preventDefault(); } } function endDrag() { if (!isDragging) return; isDragging = false; const dragRatio = Math.abs(diffX) / dragTarget.offsetWidth; if (Math.abs(diffX) < clickTolerance || ( dragRatio >= dragRatioThreshold && ((direction === 'left' && diffX < 0) || (direction === 'right' && diffX > 0)) )) { triggerOnce(); } else { animatedBanner.style.transform = 'translateX(0)'; animatedBanner.classList.add('active'); } diffX = 0; } dragTarget.addEventListener('mousedown', startDrag); dragTarget.addEventListener('mousemove', onDrag); dragTarget.addEventListener('mouseup', endDrag); dragTarget.addEventListener('mouseleave', endDrag); dragTarget.addEventListener('touchstart', startDrag, { passive: false }); dragTarget.addEventListener('touchmove', onDrag, { passive: false }); dragTarget.addEventListener('touchend', endDrag); } // end bannerConfigs.forEach(config => { const targets = document.querySelectorAll(config.selector); if (targets.length === 0) return; targets.forEach(target => { target.innerHTML = ''; const banner = createBanner(config); target.appendChild(banner); const customBox = banner.querySelector('.customBox'); const animatedBanner = banner.querySelector('.customBanner'); const threshold = config.width * dragSensitivity; setupDragEvents(customBox, animatedBanner, threshold, coupangLink, config.dragDirection); }); }); }, 100);