Public Source Viewer

비나래아카이브 개발자 포털

실제 서비스 구조를 살펴볼 수 있는 공개용 코드 뷰어입니다. 인증, 세션, 외부 연동, 토큰, 관리자 식별 등 보안상 민감한 구현은 파일 단위 또는 줄 단위로 검열됩니다.

Redacted View
public/js/end-modern.js
공개 가능
1 (function () {
2 const clock = document.querySelector('[data-end-clock]');
3 if (clock) {
4 const update = function () {
5 const now = new Date();
6 clock.textContent = now.toLocaleTimeString('ko-KR', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit' });
7 };
8 update();
9 window.setInterval(update, 1000);
10 }
11
12 const title = document.querySelector('[data-unstable-title]');
13 if (title && !window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
14 window.setInterval(function () {
15 title.classList.add('is-unstable');
16 window.setTimeout(function () { title.classList.remove('is-unstable'); }, 90);
17 }, 6500);
18 }
19 })();
20