PageSourceSearch

https://ungaguide.com/wp-content/themes/unga-guide-theme/dist/scri…?ver=cf4ded628a3b170325b5e25505587e9e

js ungaguide.com collected 2026-09-24 18:41:45 UTC 1,064 bytes, 43 lines download raw bytes

1import navToggle from "./modules/navigation.js"
2import datepicker from "./modules/datepicker.js"
3import catToggle from "./modules/eventCategoryToggle.js"
4import eventViewToggle from "./modules/eventViewToggle.js"
5
6function clearEventFilters() {
7    const button = document.getElementById("events-clear-filters")
8
9    if (!button) {
10        return
11    }
12
13    button.addEventListener("click", () => {
14        const form = button.closest("form")
15
16        if (!form) {
17            return
18        }
19
20        const searchInput = form.querySelector('input[name="s"]')
21        const dateInput = form.querySelector('input[name="event-date-range"]')
22
23        if (searchInput) {
24            searchInput.value = ""
25        }
26
27        if (dateInput) {
28            dateInput.value = ""
29        }
30
31        const action = form.getAttribute("action") || window.location.pathname
32        window.location.assign(action)
33    })
34}
35
36
37document.addEventListener("DOMContentLoaded", () => {
38    catToggle()
39    datepicker()
40    eventViewToggle()
41    navToggle()
42    clearEventFilters()
43})

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.