PageSourceSearch

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

js jennykomenda.com collected 2026-09-25 19:18:24 UTC 1,578 bytes, 54 lines download raw bytes

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

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.