1"use strict"; 2 3$(function() { 4 //IE 7,8 CSS3 PIE 5 if (window.PIE) { 6 $(".r_box").each(function() { 7 PIE.attach(this); 8 }); 9 } 10 11 // homepage list 12 $('.page_list').hide(); 13 14 /* 15 $('.homepage a').click(function(e) { 16 $('.page_list').fadeToggle('fast'); 17 if($('.page_list').css('display')=='block'){ 18 $('.page_list .btn_close').show(); 19 }else if($('.page_list').css('display')=='none'){ 20 $('.page_list .btn_close').hide(); 21 } 22 e.preventDefault(); 23 }); 24 */ 25 26 $('.page_list .btn_close').click(function(e) { 27 $('.page_list').fadeOut('fast'); 28 e.preventDefault(); 29 }) 30 31 // nav btn_close click event 32 $('#nav .btn_close').click(function() { 33 $('#nav ul ul').add(this).addClass('off'); 34 }); 35 36 // nav hover event 37 $('#nav').bind('mouseover focusin', function() { 38 $('#nav ul ul, #nav .btn_close').removeClass('off').addClass('on'); 39 }).bind('mouseleave' , function(){ 40 $('#nav ul ul, #nav .btn_close').removeClass('on').addClass('off'); 41 }) 42 43 $('.btn_close').bind('focusout', function(){ 44 $('#nav ul ul, #nav .btn_close').removeClass('on').addClass('off'); 45 }); 46 47 48 $('#nav > ul > li > a').bind('mouseover focusin', function(){ 49 $(this).removeClass('off').addClass('on'); 50 $(this).css('background-color','#00387f').css('background-right-color', '#00387f'); 51 }); 52 $('#nav > ul > li > a').bind('mouseleave focusout', function(){ 53 $(this).removeClass('on').addClass('off'); 54 $(this).css('background-color','').css('background-right-color', ''); 55 }); 56 57 58 $('#nav > ul > li > ul > li > a').bind('mouseover focusin', function(){ 59 $(this).removeClass('off').addClass('on'); 60 $(this).css('background-color','#0f99d1').css('background-right-color', '#0f99d1').css('color', 'white'); 61 }); 62 63 $('#nav > ul > li > ul > li > a').bind('mouseleave focusout', function(){ 64 $(this).removeClass('on').addClass('off'); 65 $(this).css('background-color','').css('background-right-color', '').css('color', '#333'); 66 }); 67 68 //WA ë°ë¡ê°ê¸° 69 $('.skipM').bind('focusin', function(){ 70 //$('#pageSkip').css('position', 'absolute').css('left', '0px').css('z-index', '999'); 71 $('#pageSkip').css('left', '0px'); 72 $(this).css('left', '0px'); 73 }); 74 $('.skipM').bind('focusout', function(){ 75 //$('#pageSkip').css('position', 'absolute').css('left', '0px').css('z-index', '999'); 76 $('#pageSkip').css('left', '-9999px'); 77 $(this).css('left', '-9999px'); 78 }); 79 80 //lnb, 본문ì í¬ì»¤ì¤ê°ë©´ ë©ì¸ë©ë´ ë«ê¸° 81 $('#lnbM').bind('focusin', function(){ 82 $('#nav ul ul, #nav .btn_close').removeClass('on').addClass('off'); 83 }); 84 $('#contents').bind('focusin', function(){ 85 $('#nav ul ul, #nav .btn_close').removeClass('on').addClass('off'); 86 }); 87 88 var org_width = 0; 89 var org_height = 0; 90 //ë©ì¸íë©´ ë°°ë 91 $('ul.banner li').bind('focusin mouseenter', function(){ 92 //$(this).css('width','180px').css('height','77px').css('border', '2px solid black'); 93 94 //if($(this).find('a').hasClass('banner_addr') || $(this).find('a').hasClass('banner_domain')){ 95 // $(this).css('height', '78px'); 96 //} 97 98 //if($(this).find('a').hasClass('banner_stat')){ 99 // $(this).css('height', '80px'); 100 //} 101 102 org_width = $(this).width(); 103 org_height = $(this).height(); 104 105 $(this).css('width', (org_width-5)+'px').css('height', (org_height-4)+'px').css('border', '2px solid black'); 106 }).bind('focusout mouseleave', function(){ 107 108 //$(this).css('width','184px').css('height','82px').css('border', '0'); 109 110 //if($(this).find('a').hasClass('banner_addr') || $(this).find('a').hasClass('banner_domain')){ 111 // $(this).css('height', '82px'); 112 //} 113 114 //if($(this).find('a').hasClass('banner_stat')){ 115 // $(this).css('height', '82px'); 116 //} 117 $(this).css('border', '0').css('width', org_width+'px').css('height', org_height+'px'); 118 }); 119 120 121 //title 122 var pageTitle = $('h1.tit > img').attr('alt'); 123 var pageLocation = $('#location').html().replace('<img src="\/images\/common\/ico\/icoHome.gif" alt="íì¼ë¡">', '').replace('<span>', '').replace('<\/span>', '').replaceAll('>','>'); 124 125 if(pageLocation == null || pageLocation == '' || pageLocation == 'undefined'){ 126 document.title = "íêµì¸í°ë·ì ë³´ì¼í°(KRNIC) > " + pageTitle; 127 } 128 else{ 129 document.title = "íêµì¸í°ë·ì ë³´ì¼í°(KRNIC) " + pageLocation; 130 } 131}); 132 133if(window.addEventListener) { 134 window.addEventListener('load', function() { 135 setTimeout(scrollTo, 0, 0, 1); 136 }, false); 137} 138var isMobile = { 139 Android: function() { 140 return navigator.userAgent.match(/Android/i); 141 }, 142 BlackBerry: function() { 143 return navigator.userAgent.match(/BlackBerry/i); 144 }, 145 iOS: function() { 146 return navigator.userAgent.match(/iPhone|iPod/i); 147 }, 148 Opera: function() { 149 return navigator.userAgent.match(/Opera Mini/i); 150 }, 151 Windows: function() { 152 return navigator.userAgent.match(/IEMobile/i); 153 }, 154 any: function() { 155 return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()); 156 } 157 }; 158 /* 모ë°ì¼ ì 체보기 */ 159 $(function(){ 160 var toggleList='.lst_menu_mbi'; 161 var toggleListBtn=toggleList+'>li>ul>li>a.btn_menu_open'; 162 $(toggleListBtn).next().hide(); 163 //$(lst_menu_mbi+'>li:first-child>.title').addClass('on').next().show(); 164 $(toggleListBtn).click(function(){ 165 //$(this).parent().siblings().children().removeClass('on').next().hide(); 166 //$(this).addClass('on'); 167 $('.btn_menu_depth1').next().children().siblings().children('a').removeClass('on').next().hide(); 168 //$(this).parent().siblings().children('a').removeClass('on').next().hide(); 169 $(this).toggleClass('on'); 170 $(this).next().slideToggle(200); 171 }); 172 });
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.