AllinAuckland
Isaiahstory73
Isaiahstory73
Isaiahyoutube
Isaiahyoutube
Isaiahbook
Isaiahbook
Isaiahbook
Isaiahstory73
Isaiahstory
Isaiahbook
Isaiahbook
Isaiahbook
Isaiahstory
Isaiahstory
Isaiahstory
Isaiahbook
정성욱 목사 조직신학 강의 | Prof. Sung Wook Jung Systematic Theology
정성욱 목사 조직신학
구원론 · 성령론 · 교회론 체계적 강의
ENG
전체보기
구원론 (언약사)
구원의 이해
성령론
교회론 (속성·사역)
교회론 (이미지)
×
// 현재 선택된 언어 및 카테고리 상태 let currentLang = 'ko'; // 'ko' 또는 'en' let currentCategory = 'all'; // 페이지 초기 로드 시 실행 document.addEventListener('DOMContentLoaded', () => { renderLectures(); }); // 언어 전환 (한/영) function toggleLanguage() { currentLang = currentLang === 'ko' ? 'en' : 'ko'; document.getElementById('lang-btn').innerText = currentLang === 'ko' ? 'ENG' : 'KOR'; // 헤더 및 푸터 텍스트 변경 if (currentLang === 'ko') { document.getElementById('header-title').innerText = '정성욱 교수 조직신학'; document.getElementById('header-subtitle').innerText = '구원론 · 성령론 · 교회론 체계적 강의'; document.getElementById('footer-desc').innerText = '체계적인 조직신학 강의를 통해 성경의 깊은 진리를 탐구합니다.'; document.getElementById('tab-all').innerText = '전체보기'; document.getElementById('tab-covenant').innerText = '구원론 (언약사)'; document.getElementById('tab-soteriology').innerText = '구원의 이해'; document.getElementById('tab-pneumatology').innerText = '성령론'; document.getElementById('tab-ecclesiology1').innerText = '교회론 (속성·사역)'; document.getElementById('tab-ecclesiology2').innerText = '교회론 (이미지)'; } else { document.getElementById('header-title').innerText = 'Prof. Sung Wook Jung Systematic Theology'; document.getElementById('header-subtitle').innerText = 'Soteriology · Pneumatology · Ecclesiology Lectures'; document.getElementById('footer-desc').innerText = 'Exploring deep biblical truths through systematic theology lectures.'; document.getElementById('tab-all').innerText = 'View All'; document.getElementById('tab-covenant').innerText = 'Soteriology (Covenant)'; document.getElementById('tab-soteriology').innerText = 'Soteriology (Understanding)'; document.getElementById('tab-pneumatology').innerText = 'Pneumatology'; document.getElementById('tab-ecclesiology1').innerText = 'Ecclesiology (Nature)'; document.getElementById('tab-ecclesiology2').innerText = 'Ecclesiology (Images)'; } renderLectures(); } // 카테고리 필터링 function filterCategory(cat) { currentCategory = cat; // 탭 스타일 변경 const tabs = document.querySelectorAll('.tab-btn'); tabs.forEach(tab => tab.classList.remove('active')); event.target.classList.add('active'); renderLectures(); } // 강의 카드 렌더링 function renderLectures() { const container = document.getElementById('lecture-content'); container.innerHTML = ''; // 카테고리 필터 적용 const filteredLectures = currentCategory === 'all' ? lectures : lectures.filter(l => l.cat === currentCategory); // 카테고리별 그룹화 const grouped = {}; filteredLectures.forEach(lecture => { const catKey = lecture.cat; if (!grouped[catKey]) grouped[catKey] = []; grouped[catKey].push(lecture); }); // HTML 생성 for (const catKey in grouped) { const catGroup = grouped[catKey]; const section = document.createElement('div'); section.className = 'category-section'; const catName = currentLang === 'ko' ? catGroup[0].catKo : catGroup[0].catEn; let gridHtml = `
${catName}
`; catGroup.forEach(item => { const title = currentLang === 'ko' ? item.titleKo : item.titleEn; const desc = currentLang === 'ko' ? item.descKo : item.descEn; const searchUrl = `https://www.youtube.com/results?search_query=${item.query}`; const playBtnText = currentLang === 'ko' ? '유튜브 검색' : 'Search YouTube'; gridHtml += `
강의 ${item.id}
${title}
${desc.replace(/\n/g, '
')}
${playBtnText}
`; }); gridHtml += `
`; section.innerHTML = gridHtml; container.appendChild(section); } } // 모달 제어 함수 (필요 시 활용) function openModal(youtubeUrl) { const modal = document.getElementById('videoModal'); const iframe = document.getElementById('youtubeIframe'); iframe.src = youtubeUrl; modal.style.display = 'flex'; } function closeModal() { const modal = document.getElementById('videoModal'); const iframe = document.getElementById('youtubeIframe'); iframe.src = ''; modal.style.display = 'none'; }