diff --git a/src/main/resources/templates/dashboard.html b/src/main/resources/templates/dashboard.html index 468b9c4..71191f2 100644 --- a/src/main/resources/templates/dashboard.html +++ b/src/main/resources/templates/dashboard.html @@ -69,6 +69,17 @@ + + +
+
+
+ 미리보기 + +
+
+
+
@@ -205,7 +227,8 @@ const ratio = v.viewsPerSubRatio!=null ? Number(v.viewsPerSubRatio).toFixed(0)+'×' : '–'; return `
${i+1}
- +
SHORTS · ${esc(v.channelTitle||'')} · ${fmt(v.viewCount)}
@@ -260,6 +283,19 @@ } catch(e){ alert('제외 실패: '+e.message); } } + // ----- 영상 미리보기 (수집함과 동일) ----- + function openVideoModal(vid, title){ + document.getElementById('vmTitle').textContent = title || '미리보기'; + document.getElementById('vmFrame').innerHTML = + ''; + document.getElementById('videoModal').classList.add('open'); + } + function closeVideoModal(){ + document.getElementById('vmFrame').innerHTML = ''; + document.getElementById('videoModal').classList.remove('open'); + } + document.addEventListener('keydown', e => { if(e.key === 'Escape') closeVideoModal(); }); + loadDashboard(); /*]]>*/