1// JavaScript Document 2$(document).ready(function(){ 3 init(); 4 visual() 5}) 6$(window).resize(function(){ 7 visual() 8}) 9//var pos_top = $('body').offset().top 10 11 12function init() { 13 14 $(document).ready(function(){ 15 $('.quickMenu').bxSlider({ 16 minSlides:4, 17 maxSlides:8, 18 slideWidth: 120, 19 slideMargin:0, 20 /*auto:true,*/ 21 pause:4000, 22 moveSlides: 1, 23 pager:false, 24 prevSelector:".btn_quickMenu .prev", 25 nextSelector:".btn_quickMenu .next", 26 prevText: '', 27 nextText: '', 28 onSliderLoad : function(){ 29 $('.bx-clone a').attr('tabindex','-1'); 30 } 31 }); 32 var familyList; 33 familyList = $('.familyList').bxSlider({ 34 minSlides:4, 35 maxSlides:6, 36 slideWidth:'auto', 37 slideMargin:45, 38 auto:true, 39 pause:6000, 40 moveSlides: 1, 41 pager:false, 42 autoControls:true, 43 prevText: '', 44 nextText: '', 45 startText:'', 46 stopText:'', 47 onSliderLoad : function(){ 48 $('.bx-clone a').attr('tabindex','-1'); 49 } 50 }); 51 52 $('.newsLoader').bxSlider({ 53 moveSlides: 1, 54 pager:false, 55 prevSelector:".btn_news .prev", 56 nextSelector:".btn_news .next", 57 prevText: '', 58 nextText: '', 59 onSliderLoad : function(){ 60 $('.bx-clone a').attr('tabindex','-1'); 61 } 62 }); 63 $('.photoLoader').bxSlider({ 64 moveSlides: 1, 65 pager:false, 66 prevSelector:".btn_photo .prev", 67 nextSelector:".btn_photo .next", 68 prevText: '', 69 nextText: '', 70 onSliderLoad : function(){ 71 $('.bx-clone a').attr('tabindex','-1'); 72 } 73 }); 74 var noticeArea; 75 noticeArea = $('.noticeArea ul').bxSlider({ 76 moveSlides: 1, 77 pager:false, 78 auto:true, 79 pause:6000, 80 autoControls:true, 81// autoControlsCombine:true, 82 prevText: ' ', 83 nextText: ' ', 84 startText:'', 85 stopText:'', 86 onSliderLoad : function(){ 87 $('.bx-clone a').attr('tabindex','-1'); 88 } 89 }); 90 $('.topVisualBanner .visual').bxSlider({ 91 mode:'fade', 92 moveSlides: 1, 93 auto:false, 94 pause:4000, 95 autoControls:false, //�����ټ��� true 96 controls: false,//�����ټ��� true 97 randomStart :true, 98 pager:false, 99 prevText: '', 100 nextText: '', 101 startText:'', 102 stopText:'', 103 }); 104 $('.bbsArea.mobileBbs .bbsCon').eq(0).show(); 105 $('.centerContents .bbsArea .bbsCon').eq(0).show(); 106 $('.bbsArea.mobileBbs .bbsTab li a').on('click',function(){ 107 var indexNum = $('.bbsArea.mobileBbs .bbsTab li a').index(this); 108 $('.bbsArea.mobileBbs .bbsTab li').removeClass('active') 109 $('.bbsArea.mobileBbs .bbsTab li').eq(indexNum).addClass('active') 110 $('.bbsArea.mobileBbs .bbsCon').hide() 111 $('.bbsArea.mobileBbs .bbsCon').eq(indexNum).show() 112 return false; 113 }) 114 $('.centerContents .bbsArea .bbsTab li a').on('click',function(){ 115 var indexNum = $('.centerContents .bbsArea .bbsTab li a').index(this); 116 $('.centerContents .bbsArea .bbsTab li').removeClass('active') 117 $('.centerContents .bbsArea .bbsTab li').eq(indexNum).addClass('active') 118 $('.centerContents .bbsArea .bbsCon').hide() 119 $('.centerContents .bbsArea .bbsCon').eq(indexNum).show() 120 return false; 121 }) 122 $('#headerBottom .fullMenu').on('click',function(){ 123 $('.subMenuArea').hide(); 124 $('#searchArea').hide(); 125 $('#fullMenuArea').toggle(); 126 return false; 127 }) 128 $('#headerBottom .search').on('click',function(){ 129 $('#searchArea').toggle(); 130 $('.subMenuArea').hide(); 131 $('#fullMenuArea').hide(); 132 return false; 133 }) 134 $('#searchArea .btn .close').on('click',function(){ 135 $('#searchArea').hide(); 136 return false; 137 }) 138 $('#searchArea .btn .searchButton').on('click',function(){ 139 goTopSearch(); 140 return false; 141 }) 142 $('#mobSearchArea .search .mobSearchButton').on('click',function(){ 143 goTopMobSearch(); 144 return false; 145 }) 146 $('.recommendTab li a').on('click',function(){ 147 var indexNum = $('.recommendTab li a').index(this); 148 $('.recommendTab li').removeClass('active') 149 $('.recommendTab li').eq(indexNum).addClass('active') 150 $('.recommendList').show() 151 $('.recommendList .list li').hide() 152 $('.recommendList .list li').eq(indexNum).show() 153 return false; 154 }) 155 $('.madang dl dt a').on('mouseover',function(){ 156 $(this).parent().hide() 157 return false; 158 }) 159 $('.madang dl').on('mouseleave',function(){ 160 $(this).find('dt').show() 161 return false; 162 }) 163 164 $('.typeInfo .infoTop .infoMenu li a').on('click',function(){ 165 if($(this).next().is('ul') == true){ 166 var indexNum = $('.typeInfo .infoTop .infoMenu li a').index(this); 167 $('.typeInfo .infoTop .infoMenu .clearfix').hide(); 168 $('.typeInfo .infoTop .infoMenu li').eq(indexNum).find('ul').show(); 169 return false; 170 } 171 }); 172 173 /* 174 $('.gnb > li > a').on('mouseover',function(){ 175 $('.gnb li').removeClass('active'); 176 $(this).parent().addClass('active'); 177 178 $('.subMenuArea').hide(); 179 $('.subMenuArea .subMenu').hide(); 180 181 $(this).parent().find('div').show(); 182 $(this).parent().find('div').find('subMenu').show(); 183 184 $('#fullMenuArea').hide(); 185 $('#searchArea').hide(); 186 return false; 187 }) 188 189 $('.gnb > li > a').on(' focus',function(){ 190 $('.gnb li').removeClass('active'); 191 $(this).parent().addClass('active'); 192 193 $('.subMenuArea').hide(); 194 $('.subMenuArea .subMenu').hide(); 195 196 $(this).parent().find('div').show(); 197 $(this).parent().find('div').find('subMenu').show(); 198 199 $('#fullMenuArea').hide(); 200 $('#searchArea').hide(); 201 return false; 202 }) 203 204 $('.rightMenu a').on('focus',function(){ 205 $('.subMenuArea').hide() 206 $('.subMenuArea .subMenu').hide() 207 }) 208 $('#header').on('mouseleave',function(){ 209 $('.subMenuArea').hide() 210 $('.subMenuArea .subMenu').hide() 211 }) 212 $('.leftNav dt a').on('click',function(){ 213 if($(this).parent().next().is('dd') == true){ 214 $(this).parent().siblings('dt').removeClass('active') 215 $(this).parent().toggleClass('active') 216 $(this).parent().next().siblings('dd').hide() 217 $(this).parent().next().toggle(); 218 return false; 219 } 220 }) 221 222 $('.leftNav dd ul li.active').parent().parent().show().prev().addClass('active') 223 */ 224 225 $('.noticeArea ul li a').on('focus',function(){ 226 if($('.noticeArea ul li a').index(this)==1){ 227 noticeArea.goToSlide(0);
228 } 229 }) 230 231 $('.familyList li a').on('focus',function(){ 232 if($('.familyList li a').index(this)==6){ 233 familyList.goToSlide(0); 234 } 235 }) 236 237 $(".btn_topSlideBar_close").click(function() { 238 $("#topSlideBar").slideUp(); 239 }); 240 $(".btn_topSlideBar_open").click(function() { 241 $("#topSlideBar").slideDown(); 242 }); 243 }); 244} 245 246function visual(){ 247 248 249 250} 251 252function layer_function(){ 253 var pop_height = $('.popupWrap').height()/2; 254 $('.popupWrap').show().css({marginTop:-pop_height}) 255// $('.popup-layer.'+name).show().css({marginTop:-pop_height}).addClass('bounceInUp') 256 return false; 257} 258 259function layer_init(name){ 260 var pop_height = $('.popup-layer.'+name).height()/2; 261 $('.overay-layer').show().addClass('fadeIn') 262// $('.popup-layer').show().css({marginTop:-pop_height}).addClass('bounceInUp') 263 $('.popup-layer.'+name).show().css({marginTop:-pop_height}).addClass('bounceInUp') 264 return false; 265} 266 267function toggle(){ 268 if($( "#lanList" ).css("display")=="none"){ 269 $( "#lanList" ).slideDown(); 270 }else{ 271 $( "#lanList" ).slideUp("fast"); 272 } 273} 274 275/* ì¬ì©ìí ê² ê°ìì ìì 276 function goTopMobSearch(){ 277 278 var query=document.mobSearchForm.searchQuery.value; 279 var lenght = query.length; 280 281 var cookieNm = "Searchkeyword"; 282 if (CheckStr(query, " ", "")==0) { 283 alert ("�˻�� �Է����ּ���."); 284 document.mobSearchForm.searchQuery.value = ""; 285 document.mobSearchForm.searchQuery.focus(); 286 return; 287 } 288 if(!invalidchar(query)) { 289 alert("�˻�� �ùٸ��� ���� ���ڰ� �ֽ��ϴ�."); 290 document.mobSearchForm.searchQuery.value = ""; 291 document.mobSearchForm.searchQuery.focus(); 292 return; 293 } 294 295 if((lenght < 2)){ 296 alert("�˻���� �ּ�2�� �̻� �����մϴ�."); 297 document.mobSearchForm.searchQuery.focus(); 298 return; 299 }else{ 300 setSearchCookie(query, cookieNm); 301 302 var url = "/search/search_total.do"; 303 var frm = document.mobSearchForm; 304 frm.action =url; 305 frm.method="post"; 306 frm.target="total_search"; 307 frm.submit(); 308 //document.searchForm.submit(); 309 } 310} 311 312$(document).ready(function () { 313 $(".modal .btn_close").click(function () { 314 setCookieMobile( "todayCookie", "done" , 1); 315 $(".modal").hide(); 316 $(".btn_topSlideBar_open").hide(); 317 }); 318 getCookieMobile(); 319}); 320 321function setCookieMobile ( name, value, expiredays ) { 322 var todayDate = new Date(); 323 todayDate.setDate( todayDate.getDate() + expiredays ); 324 document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"; 325} 326function getCookieMobile () { 327 var cookiedata = document.cookie; 328 if ( cookiedata.indexOf("todayCookie=done") < 0 ){ 329 $(".modal").show(); 330 } 331 else { 332 $(".modal").hide(); 333 $(".btn_topSlideBar_open").hide(); 334 } 335} 336 337$(document).ready(function () { 338 $('.headerQuick .mR2 > li > a').on('click',function(){ 339 $(this).parent().parent().toggleClass('active'); 340 return false; 341 }) 342 $('.headerQuick .mR2').on('mouseleave',function(){ 343 $(this).removeClass('active'); 344 return false; 345 }) 346 $('.gnb li.fullMenu a').on('click',function(){ 347 $('#subMenuArea').toggle() 348 return false; 349 }) 350 351 $('.gnb li > a').on('mouseover',function(){ 352 var indexNum = $('.gnb li > a').index(this); 353 354 if(indexNum != 0){ 355 $('.gnb li').removeClass('active'); 356 $(this).parent().addClass('active'); 357 $('.gnbSub .subMenu').hide(); 358 $('.gnbSub .subMenu').eq(indexNum-1).show(); 359 } 360 $('#subMenuArea').hide(); 361 return false; 362 }) 363 364 $('.gnb li > a').on('focus',function(){ 365 var indexNum = $('.gnb li > a').index(this); 366 367 if(indexNum != 0){ 368 $('.gnb li').removeClass('active'); 369 $(this).parent().addClass('active'); 370 $('.gnbSub .subMenu').hide(); 371 $('.gnbSub .subMenu').eq(indexNum-1).show(); 372 } 373 $('#subMenuArea').hide(); 374 return false; 375 }) 376 377 $('#header').on('mouseleave',function(){ 378 $('#subMenuArea').hide() 379 $('.gnb li').removeClass('active'); 380 $('.gnbSub .subMenu').hide(); 381 }) 382 383 $('.searchIndex .searchButton').on('click',function(){ 384 goTopSearch(); 385 return false; 386 }) 387 388 $('.mobBtn a.menuall').on('click',function(){ 389 $('#mobHeader').show(); 390 $('#mobHeader .overay').show(); 391 $('#mobHeader .mobMenuArea').show(); 392 return false; 393 }) 394 $('.mobMenuArea .btnClose a').on('click',function(){ 395 $('#mobHeader .overay').hide(); 396 $('#mobHeader .mobMenuArea').hide(); 397 return false; 398 }) 399 $('.mobMenu .cate').on('click',function(){ 400 401 $(this).parent().siblings('.menuLine').find('dl').hide(); 402 $(this).parent().find('dl').toggle(); 403 return false; 404 }) 405 $('.mobMenu dl dt').on('click',function(){ 406 $(this).parent().siblings('dl').find('dt').removeClass('active') 407 $(this).toggleClass('active') 408 $(this).parent().siblings('dl').find('dd').hide() 409 $(this).parent().find('dd').toggle(); 410 return false; 411 }) 412 $('.mobBtn .allApp > a').on('click',function(){ 413 $('.mobQuick').show(); 414 return false; 415 }) 416 $('.mobQuick > ul > li.sub').on('click',function(){ 417 $('.quickMenuSub').show(); 418 return false; 419 }) 420 $('.mobBtn .mobQuick .btn_close').on('click',function(){ 421 $(this).parent().hide().next().hide(); 422 return false; 423 }) 424 $('.mobBtn .quickMenuSub .btn_close').on('click',function(){ 425 $(this).parent().hide(); 426 return false; 427 }) 428 429 $('#leftArea').on('focus',function(){ 430 $('#subMenuArea' ).hide(); 431 return false; 432 }) 433 434});*/ 435
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.