Files
taxbaik/wwwroot/js/site.js
T
kjh2064 ed8ac34542
TaxBaik CI/CD / build-and-deploy (push) Successful in 1m46s
fix: replace V018 with V019 (fixed SQL quote escaping)
V018 had PostgreSQL quote escaping issues with long content strings.
V019 uses 1256 quoting to avoid escaping problems and cleanly inserts
all 12 blog posts (5 updates + 7 new) with middle-school level language.

Deletes V018, commits V019 as replacement.
2026-07-01 16:31:40 +09:00

25 lines
699 B
JavaScript

function openKakao() {
const kakaoUrl = document.querySelector('[data-kakao-url]')?.dataset.kakaoUrl || '#';
if (kakaoUrl !== '#') {
window.open(kakaoUrl, '_blank');
} else {
alert('카카오톡 채널 URL이 설정되지 않았습니다.');
}
}
document.addEventListener('DOMContentLoaded', function() {
const navbar = document.querySelector('.navbar');
if (!navbar) {
return;
}
const setShadow = () => {
navbar.style.boxShadow = window.scrollY > 0
? '0 2px 8px rgba(0,0,0,0.1)'
: '0 1px 3px rgba(0,0,0,0.1)';
};
setShadow();
window.addEventListener('scroll', setShadow, { passive: true });
});