PageSourceSearch

https://www.bgcmoncton.com/wp-content/plugins/wp-google-maps-pro/j…?ver=10.0.09+pro-10.0.07

js bgcmoncton.com collected 2026-10-05 18:24:18 UTC 1,804 bytes, 44 lines download raw bytes

1/**
2 * @namespace WPGMZA
3 * @module CategoryLegends
4 * @requires WPGMZA.EventDispatcher
5 */
6jQuery(function($) {
7	
8	WPGMZA.CategoryLegends = function(element) {
9		var self = this;
10		
11		WPGMZA.EventDispatcher.call(this);
12		
13		this.element = element;
14
15        $(this.element).on('click', '.wpgmza-category-legend', function(event) {
16            self.onClick(event);
17        });
18	}
19	
20	WPGMZA.CategoryLegends.prototype = Object.create(WPGMZA.EventDispatcher.prototype);
21	WPGMZA.CategoryLegends.prototype.constructor = WPGMZA.CategoryLegends;
22	
23	WPGMZA.CategoryLegends.createInstance = function(map, element){
24		return new WPGMZA.CategoryLegends(map, element);
25	}
26	
27	WPGMZA.CategoryLegends.prototype.onClick = function(event){
28        event.preventDefault();
29
30        if(event.currentTarget && $(event.currentTarget).hasClass('wpgmza-category-legend')){
31            const category = $(event.currentTarget).data('category-id');
32            const mapId = $(event.currentTarget).data('map-id');
33            if(category && mapId){
34                if($(`select[name="wpgmza_filter_select"][mid="${mapId}"] option[value="${category}"]`).length > 0){
35                    /* Dropdown */
36                    $(`select[name="wpgmza_filter_select"][mid="${mapId}"] option[value="${category}"]`).parent().val(category).trigger('change');
37                } else if($(`input.wpgmza_checkbox[type="checkbox"][mid="${mapId}"][value="${category}"]`).length > 0){
38                    /* Checkbox */
39                    $(`input.wpgmza_checkbox[type="checkbox"][mid="${mapId}"][value="${category}"]`).prop('checked', !$(`input.wpgmza_checkbox[type="checkbox"][mid="${mapId}"][value="${category}"]`).prop('checked')).trigger('change');
40                }
41            }
42        }
43	}
44});

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.