PageSourceSearch

https://www.urbansoccer.fr/wp-content/themes/urban/proto/app/asset…/handleFanzoCities.js?x18322&ver=1.0.0

js urbansoccer.fr collected 2026-10-01 16:13:03 UTC 1,011 bytes, 25 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function () {
2    const centerId = document.querySelector('#centerId')
3    if (centerId) {
4        // Check if the URL contains the "centre" parameter
5        const urlParams = new URLSearchParams(window.location.search)
6        const centreParam = urlParams.get('centre')
7
8        // If the "centre" parameter exists, set the value of the select element
9        if (centreParam) {
10            centerId.value = fanzoCities?.find?.(city => city.name === centreParam)?.ozmoCenterId
11        }
12    }
13    const urlField = document.querySelector('#urlField')
14    if (urlField) {
15        urlField.value = window.location.href;
16    }
17    const restaurantSelect = document.querySelector('#restaurantSelect')
18    if (restaurantSelect) {
19        restaurantSelect.addEventListener("change", e => {
20            if(e.target.value) {
21                centerId.value = fanzoCities?.find?.(city => city.name === e.target.value)?.ozmoCenterId || '1'
22            }
23        })
24    }
25});

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.