PageSourceSearch

https://5ducks.ai/static/js/mobile-menu.js

js 5ducks.ai collected 2026-10-05 15:16:50 UTC 699 bytes, 18 lines download raw bytes

1// Shared mobile menu functionality
2document.addEventListener('DOMContentLoaded', function() {
3    const mobileMenuBtn = document.getElementById('mobile-menu-btn');
4    const mobileMenu = document.getElementById('mobile-menu');
5    
6    if (mobileMenuBtn && mobileMenu) {
7        mobileMenuBtn.addEventListener('click', function() {
8            mobileMenu.classList.toggle('hidden');
9        });
10        
11        // Close mobile menu when clicking outside
12        document.addEventListener('click', function(event) {
13            if (!mobileMenuBtn.contains(event.target) && !mobileMenu.contains(event.target)) {
14                mobileMenu.classList.add('hidden');
15            }
16        });
17    }
18});

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.