PageSourceSearch

https://www.localofferbirmingham.co.uk/wp-content/themes/flatsome-child/js/escape-button-custom.js?ver=7.1.2

js localofferbirmingham.co.uk collected 2026-10-01 15:26:12 UTC 668 bytes, 16 lines download raw bytes

1document.addEventListener('keydown', (event) => {
2        
3    if (event.key === 'Escape') {
4     //if esc key was not pressed in combination with ctrl or alt or shift
5        const isNotCombinedKey = !(event.ctrlKey || event.altKey || event.shiftKey);
6        if (isNotCombinedKey) {
7            console.log("Escape key");
8            document.querySelectorAll('.current-dropdown').forEach((element => {
9                element.classList.remove("current-dropdown");
10            }));
11            document.querySelectorAll('[aria-expanded="true"]').forEach((element => {
12                element.setAttribute("aria-expanded", false);
13            }));
14        }
15    }
16});

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.