PageSourceSearch

https://claw-cade.com/gardencity/wp-content/themes/clawcade/js/shop-archive.js?ver=1772553196

js claw-cade.com collected 2026-10-08 09:20:29 UTC 1,847 bytes, 62 lines download raw bytes

1/**
2 * Shop Archive - Filter Toggle and Mobile Functionality
3 */
4
5(function($) {
6    'use strict';
7
8    $(document).ready(function() {
9        
10        var $filterToggle = $('#ccdd-filter-toggle');
11        var $filterSidebar = $('#ccdd-filter-sidebar');
12        var $filterClose = $('#ccdd-filter-close');
13        
14        // Verificar que los elementos existan
15        if (!$filterToggle.length || !$filterSidebar.length) {
16            return;
17        }
18        
19        // Toggle filter sidebar
20        $filterToggle.on('click', function(e) {
21            e.preventDefault();
22            e.stopPropagation();
23            $filterSidebar.addClass('active');
24            $('body').css('overflow', 'hidden');
25        });
26
27        // Close button
28        if ($filterClose.length) {
29            $filterClose.on('click', function(e) {
30                e.preventDefault();
31                e.stopPropagation();
32                $filterSidebar.removeClass('active');
33                $('body').css('overflow', '');
34            });
35        }
36
37        // Close sidebar when clicking outside
38        $(document).on('click', function(e) {
39            if ($filterSidebar.hasClass('active')) {
40                if (!$(e.target).closest('#ccdd-filter-sidebar, #ccdd-filter-toggle').length) {
41                    $filterSidebar.removeClass('active');
42                    $('body').css('overflow', '');
43                }
44            }
45        });
46
47        // Prevent clicks inside sidebar from closing it
48        $filterSidebar.on('click', function(e) {
49            e.stopPropagation();
50        });
51
52        // Handle window resize
53        $(window).on('resize', function() {
54            if ($(window).width() > 1024) {
55                $filterSidebar.removeClass('active');
56                $('body').css('overflow', '');
57            }
58        });
59
60    });
61
62})(jQuery);

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.