PageSourceSearch

https://www.bgcgh.ca/wp-content/plugins/wp-google-maps/js/v8/preset-selection-input.js?ver=10.0.09+pro-10.0.07

js bgcgh.ca collected 2026-10-06 18:39:31 UTC 1,550 bytes, 44 lines download raw bytes

1/**
2 * @namespace WPGMZA
3 * @module PresetSelectionInput
4 * @requires WPGMZA.EventDispatcher
5 */
6jQuery(function($) {
7    WPGMZA.PresetSelectionInput = function(element, options){
8        this.element = $(element);
9        this.input = this.element.find('input');
10        this.bind();
11    }
12
13    WPGMZA.extend(WPGMZA.PresetSelectionInput, WPGMZA.EventDispatcher);
14
15    WPGMZA.PresetSelectionInput.createInstance = function(element) {
16        return new WPGMZA.PresetSelectionInput(element);
17    }
18
19    WPGMZA.PresetSelectionInput.prototype.bind = function(){
20        this.input.on('change', () => {
21            const val = this.input.val();
22            this.element.find('.wpgmza-preset-input-controller-option').removeClass('selected');
23
24            if(this.element.find(`.wpgmza-preset-input-controller-option[data-value="${val}"]`).length){
25                this.element.find(`.wpgmza-preset-input-controller-option[data-value="${val}"]`).addClass('selected');
26            }
27        });
28
29        this.element.on('click', '.wpgmza-preset-input-controller-option', (event) => {
30            event.preventDefault();
31            this.input.val($(event.currentTarget).data('value'));
32            this.input.trigger('change');
33        });
34
35        this.input.trigger('change');
36    }
37
38    $(document.body).ready(function(){
39        $(".wpgmza-preset-input-controller").each(function(index, el) {
40            el.wpgmzaPresetSelectionInput = WPGMZA.PresetSelectionInput.createInstance(el);
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.