1$(function(){ 2 var hide_menu = false; 3 var mouse_event = false; 4 var oldX = oldY = 0; 5 6 $(document).mousemove(function(e) { 7 if(oldX == 0) { 8 oldX = e.pageX; 9 oldY = e.pageY; 10 } 11 12 if(oldX != e.pageX || oldY != e.pageY) { 13 mouse_event = true; 14 } 15 }); 16 17 // 주ë©ë´ 18 var $gnb = $(".gnb_1dli > a"); 19 $gnb.mouseover(function() { 20 if(mouse_event) { 21 $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on"); 22 $(this).parent().addClass("gnb_1dli_over gnb_1dli_on"); 23 hide_menu = false; 24 } 25 }); 26 27 $gnb.mouseout(function() { 28 hide_menu = true; 29 }); 30 31 $(".gnb_2dli").mouseover(function() { 32 hide_menu = false; 33 }); 34 35 $(".gnb_2dli").mouseout(function() { 36 hide_menu = true; 37 }); 38 39 $gnb.focusin(function() { 40 $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on"); 41 $(this).parent().addClass("gnb_1dli_over gnb_1dli_on"); 42 hide_menu = false; 43 }); 44 45 $gnb.focusout(function() { 46 hide_menu = true; 47 }); 48 49 $(".gnb_2da").focusin(function() { 50 $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on"); 51 var $gnb_li = $(this).closest(".gnb_1dli").addClass("gnb_1dli_over gnb_1dli_on"); 52 hide_menu = false; 53 }); 54 55 $(".gnb_2da").focusout(function() { 56 hide_menu = true; 57 }); 58 59 $('#gnb_1dul>li').bind('mouseleave',function(){ 60 submenu_hide(); 61 }); 62 63 $(document).bind('click focusin',function(){ 64 if(hide_menu) { 65 submenu_hide(); 66 } 67 }); 68}); 69 70function submenu_hide() { 71 $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on"); 72}
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.