PageSourceSearch

https://cdn.adlinktech.com/Module/Header/script/menu/header-shrink-nav.js

js adlinktech.com collected 2026-10-01 10:32:43 UTC 1,353 bytes, 34 lines download raw bytes

1$(function() {
2
3    if (/android/i.test(navigator.userAgent) || /iphone/i.test(navigator.userAgent)) {
4        //for mobile
5        $(".header-shrink-nav-menu li.parent").on('click',function() {
6            if ($(this).hasClass('open')) {
7                $(this).removeClass('open').children('ul.nav-sub-menu').slideUp();
8            } else {
9                $(this).addClass('open').children('ul.nav-sub-menu').slideDown();
10                return false;
11            }
12        }).mouseleave(function() {
13            $(this).removeClass('open').children('ul.nav-sub-menu').slideUp();
14        });
15
16        $(document).on('click',function() {
17            $(".header-shrink-nav-menu li").removeClass('open').children('ul.nav-sub-menu').slideUp();
18        });
19    } else {
20        //for pc
21        $('.header-shrink-nav-menu li').mouseenter(function(){
22            if (!$(this).children('ul.nav-sub-menu').is(":animated")) {
23                $(this).addClass('open');
24                if ($(this).children('ul.nav-sub-menu').children('ul.nav-sub-menu li').length){
25                    $(this).children('ul.nav-sub-menu').slideDown(); 
26                }
27            }
28        }).mouseleave(function(){
29            $(this).removeClass('open');
30            $(this).children('ul.nav-sub-menu').slideUp();
31        });
32    }
33    
34});

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.