PageSourceSearch

https://paycar.co.kr/js/jquery.menu.js?ver=2304171

js paycar.co.kr collected 2026-10-02 01:59:18 UTC 2,822 bytes, 109 lines download raw bytes

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            $("#hd").addClass("hd_zindex");
22            $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on");
23            $(this).parent().addClass("gnb_1dli_over gnb_1dli_on");
24            menu_rearrange($(this).parent());
25            hide_menu = false;
26        }
27    });
28
29    $gnb.mouseout(function() {
30        hide_menu = true;
31    });
32
33    $(".gnb_2dli").mouseover(function() {
34        hide_menu = false;
35    });
36
37    $(".gnb_2dli").mouseout(function() {
38        hide_menu = true;
39    });
40
41    $gnb.focusin(function() {
42        $("#hd").addClass("hd_zindex");
43        $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on");
44        $(this).parent().addClass("gnb_1dli_over gnb_1dli_on");
45        menu_rearrange($(this).parent());
46        hide_menu = false;
47    });
48
49    $gnb.focusout(function() {
50        hide_menu = true;
51    });
52
53    $(".gnb_2da").focusin(function() {
54        $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on");
55        var $gnb_li = $(this).closest(".gnb_1dli").addClass("gnb_1dli_over gnb_1dli_on");
56        menu_rearrange($(this).closest(".gnb_1dli"));
57        hide_menu = false;
58    });
59
60    $(".gnb_2da").focusout(function() {
61        hide_menu = true;
62    });
63
64    $('#gnb_1dul>li').bind('mouseleave',function(){
65        submenu_hide();
66    });
67
68    $(document).bind('click focusin',function(){
69        if(hide_menu) {
70            submenu_hide();
71        }
72    });
73});
74
75function submenu_hide() {
76    $("#hd").removeClass("hd_zindex");
77    $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on");
78}
79
80function menu_rearrange(el)
81{
82    var width = $("#gnb_1dul").width();
83    var left = w1 = w2 = 0;
84    var idx = $(".gnb_1dli").index(el);
85    var max_menu_count = 0;
86    var $gnb_1dli;
87
88    for(i=0; i<=idx; i++) {
89        $gnb_1dli = $(".gnb_1dli:eq("+i+")");
90        w1 = $gnb_1dli.outerWidth();
91
92        if($gnb_1dli.find(".gnb_2dul").length)
93            w2 = $gnb_1dli.find(".gnb_2dli > a").outerWidth(true);
94        else
95            w2 = w1;
96
97        if((left + w2) > width) {
98            if(max_menu_count == 0)
99                max_menu_count = i + 1;
100        }
101
102        if(max_menu_count > 0 && (idx + 1) % max_menu_count == 0) {
103            el.removeClass("gnb_1dli_over").addClass("gnb_1dli_over2");
104            left = 0;
105        } else {
106            left += w1;
107        }
108    }
109}

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.