1/* ====================== 2 POSITION 3====================== */ 4 5// â ë°°ë ì íí íëë§ ì¡ê¸° 6const $banner = $('.aside-banner.banner-top'); 7 8// ì¸ì´ ë²í¼ ìì¹ 9function updateBtnLangPosition() { 10 if ($banner.hasClass('on') && !$banner.hasClass('none')) { 11 $('.btn_lang').addClass('is-top'); 12 } else { 13 $('.btn_lang').removeClass('is-top'); 14 } 15} 16 17// â ë ì´ìì ë°ê¸° (íµì¬) 18function updateLayout(){ 19 const isMobile = window.innerWidth <= 1024; 20 21 if ($banner.hasClass('none') || isMobile) { 22 $('.wrap').css('padding-top','0'); 23 } else { 24 $('.wrap').css('padding-top','80px'); 25 } 26} 27 28// ì¤í 29$(document).ready(function(){ 30 updateBtnLangPosition(); 31 updateLayout(); 32}); 33 34$(window).on('resize', function(){ 35 updateBtnLangPosition(); 36 updateLayout(); 37}); 38 39 40// â ë¶íì / ìí ì½ë â ì ê±° ì¶ì² 41/* 42const firstBanner = document.querySelector('aside.aside-banner'); 43if (firstBanner && !firstBanner.querySelector('aside.aside-banner')) { 44 firstBanner.style.display = 'none'; 45} 46*/ 47 48 49// ë°°ë ë«ê¸° 50function closeTopPopup(siteId) { 51 52 var checkbox = document.getElementById('todayCloseCheck'); 53 var isChecked = checkbox && checkbox.checked; 54 55 if (isChecked) { 56 var now = new Date(); 57 var tomorrow = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 1, 0, 0, 0); 58 var expires = "expires=" + tomorrow.toUTCString(); 59 60 document.cookie = "top-banner-" + siteId + "=true; " + expires + "; path=/"; 61 } 62 63 // â ë°°ë ì¨ê¹ 64 $banner.addClass('none'); 65 66 // â ê°ì´ ì ë°ì´í¸ 67 updateBtnLangPosition(); 68 updateLayout(); 69} 70 71/* ====================== 72 INTRO ì¬ë¼ì§ë©´ ë°°ë ì¨ê¹ (모ë°ì¼) 73====================== */ 74 75const intro = document.querySelector('.intro'); // íìíë©´ í´ëì¤ëª ìì 76 77if (intro) { 78 const introObserver = new IntersectionObserver((entries) => { 79 const isMobile = window.innerWidth <= 1024; 80 81 entries.forEach(entry => { 82 if (isMobile && !entry.isIntersecting) { 83 // â intro ì¬ë¼ì§ â ë°°ë ì¨ê¹ 84 $banner.addClass('none'); 85 86 updateBtnLangPosition(); 87 updateLayout(); 88 } 89 }); 90 }, { 91 threshold: 0 92 }); 93 94 introObserver.observe(intro); 95}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.