PageSourceSearch

https://lucky7my.net/js/dropdowngames.js

js lucky7my.net collected 2026-10-07 03:11:15 UTC 1,115 bytes, 35 lines download raw bytes

1document.addEventListener('DOMContentLoaded', () => {
2  const dropdowngamesBtn = document.querySelector('.dropdowngames__button')
3  const dropdowngamesItems = document.querySelector('.dropdowngames__items')
4  let isOpen = !1
5  const opendropdowngames = () => {
6    isOpen = !isOpen
7    if (isOpen) {
8      dropdowngamesItems.classList.replace(
9        'dropdowngames--hide',
10        'dropdowngames--show',
11      )
12      document.addEventListener('click', closeDropdownOutside)
13    } else {
14      dropdowngamesItems.classList.replace(
15        'dropdowngames--show',
16        'dropdowngames--hide',
17      )
18      document.removeEventListener('click', closeDropdownOutside)
19    }
20  }
21  const closeDropdownOutside = (event) => {
22    if (
23      !dropdowngamesItems.contains(event.target) &&
24      !dropdowngamesBtn.contains(event.target)
25    ) {
26      isOpen = !1
27      dropdowngamesItems.classList.replace(
28        'dropdowngames--show',
29        'dropdowngames--hide',
30      )
31      document.removeEventListener('click', closeDropdownOutside)
32    }
33  }
34  dropdowngamesBtn.addEventListener('click', opendropdowngames)
35})

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.