PageSourceSearch

https://ecclawsoc.org.uk/wp-content/themes/ecclawsoc/js/custom.js?ver=1.2

js ecclawsoc.org.uk collected 2026-10-02 10:26:48 UTC 1,457 bytes, 41 lines download raw bytes

1jQuery( "<div class='redline'><span></span></div>" ).insertBefore( ".home .et_pb_blurb_container h4, .home #twitter h2, body:not(.home) .et_pb_text h2, body:not(.home) .et_pb_blog_grid .et_pb_post" );
2
3
4var currentYear = (new Date).getFullYear();
5jQuery('.page-id-508 #mepr_year_first_joined, .page-id-509 #mepr_year_first_joined').val(currentYear);
6
7
8// jQuery(".et_pb_blog_grid .et_pb_image_container").after(jQuery(".et_pb_blog_grid p.post-meta"));
9
10function initMap() {
11   // Get all maps containers
12 const mapContainers = document.querySelectorAll('.google-map');
13
14   // Loop through all containers
15 mapContainers.forEach(container => {
16         // Get coordinates
17     const lat = Number(container.dataset.lat);
18     const lng = Number(container.dataset.lng);
19
20         // Create map with the provided coordinates and set zoom
21         // Can add additional styles to the map here as well
22         // Can get zoom data from ACF map field value
23         // and pass it the same way as coordinates through dataset
24     const map = new google.maps.Map(container, {
25         center: { lat, lng },
26         zoom: 14,
27     });
28
29         // Create the marker
30     new google.maps.Marker({
31         position: {
32             lat,
33             lng,
34         },
35         map,
36     });
37 });
38}
39// Make initMap global just in case, because the script in the header
40// use initMap function as a callback and always need to have access to it
41window.initMap = initMap;

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.