PageSourceSearch

https://arinsolangeathome.com/wp-content/themes/smash_theme/smash/modules/nav_page/nav_page.js

js arinsolangeathome.com collected 2026-09-26 10:21:22 UTC 1,558 bytes, 52 lines download raw bytes

1jQuery(function($){
2    let useSide = ($('.page-nav').hasClass('side-nav')) ? true : false;
3    let isMobile = (useSide) ? true : false;
4
5    function handleShopNav(){
6        $('.page-nav-title').click(function(){
7            $(this).toggleClass('open');
8            $('.page-menu-container').fadeToggle();
9        })
10    }
11    
12    function handleSubs() {
13        handleShopNav();
14        const menu = $('.page-menu')
15        const subs = menu.find('.menu-item-has-children')
16        subs.each(function(){
17            let _ = $(this)
18            let a = _.find('> a')
19            a.before('<div class="menu-drop" />')
20            let drop = _.find('> .menu-drop')
21            a.appendTo(drop)
22            a.after('<svg class="icon menu-drop-trigger"><use xlink:href="#down-angle" /></svg>')
23            let trigger = drop.find('.menu-drop-trigger')
24            trigger.click(function(){
25                _.toggleClass('show')
26            })
27        })
28    }
29
30    if(useSide){
31        handleSubs();
32    } else {
33        if (!isMobile && $(window).width() <= 768){	
34            // do something here
35            isMobile = true;
36            if ($('.page-nav').hasClass('show-mobile')) {
37                handleSubs();
38            }
39        }
40    
41        $(window).resize(function(){
42            if (!isMobile && $(window).width() <= 768){	
43                // do something here
44                isMobile = true;
45                if ($('.page-nav').hasClass('show-mobile')) {
46                    handleSubs();
47                }
48            }	
49        });
50    }
51
52})

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.