PageSourceSearch

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

js bgcgh.ca collected 2026-10-06 18:39:01 UTC 1,636 bytes, 67 lines download raw bytes

1/**
2 * @namespace WPGMZA
3 * @module FancyControls
4 * @requires WPGMZA
5 */
6jQuery(function($) {
7	
8	WPGMZA.FancyControls = {
9		
10		formatToggleSwitch: function(el)
11		{
12			var div			= $("<div class='switch'></div>");
13			var input		= el;
14			var container	= el.parentNode;
15			var text		= $(container).text().trim();
16			var label		= $("<label></label>");
17			
18			$(input).addClass("cmn-toggle cmn-toggle-round-flat");
19			$(input).attr("id", $(input).attr("name"));
20			
21			$(label).attr("for", $(input).attr("name"));
22			
23			$(div).append(input);
24			$(div).append(label);
25			
26			$(container).replaceWith(div);
27			
28			$(div).wrap($("<div></div>"));
29			$(div).after(text);
30		},
31		
32		formatToggleButton: function(el)
33		{
34			var div			= $("<div class='switch'></div>");
35			var input		= el;
36			var container	= el.parentNode;
37			var text		= $(container).text().trim();
38			var label		= $("<label></label>");
39			
40			$(input).addClass("cmn-toggle cmn-toggle-yes-no");
41			$(input).attr("id", $(input).attr("name"));
42			
43			$(label).attr("for", $(input).attr("name"));
44			
45			$(label).attr("data-on", WPGMZA.localized_strings.yes);
46			$(label).attr("data-off", WPGMZA.localized_strings.no);
47			
48			$(div).append(input);
49			$(div).append(label);
50			
51			$(container).replaceWith(div);
52			
53			$(div).wrap($("<div></div>"));
54			$(div).after(text);
55		}
56		
57	};
58	
59	$(".wpgmza-fancy-toggle-switch").each(function(index, el) {
60		WPGMZA.FancyControls.formatToggleSwitch(el);
61	});
62	
63	$(".wpgmza-fancy-toggle-button").each(function(index, el) {
64		WPGMZA.FancyControls.formatToggleButton(el);
65	});
66	
67});

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.