PageSourceSearch

https://themontesmethod.com/wp-content/themes/HighendWP/scripts/map.js?ver=3.3.7.3

js themontesmethod.com collected 2026-10-07 08:26:20 UTC 13,882 bytes, 326 lines download raw bytes

1Object.keys = Object.keys || function(e) {
2    var o = [];
3    for (var t in e) e.hasOwnProperty(t) && o.push(t);
4    return o
5}, jQuery(document).ready(function(e) {
6    function o() {
7        var e = parseFloat(n.attr("data-map-level")),
8            o = parseFloat(n.attr("data-map-lat")),
9            t = parseFloat(n.attr("data-map-lng")),
10            q = n.attr("data-api-key"),
11            a = (n.attr("data-map-img"), n.attr("data-overlay-color")),
12            k = n.attr("data-map-buttons"),
13            i = 0;
14            if ( k != 1 ){k=0}
15        isNaN(e) && (e = 15), isNaN(o) && (o = 51.47), isNaN(t) && (t = -.268199), "" == a && (a = "none"), jQuery(window).width() > 690 ? (i = 150, enableAnimation = google.maps.Animation.BOUNCE) : enableAnimation = null;
16        var l = new google.maps.LatLng(o, t),
17            s = [{
18                stylers: [{
19                    hue: a
20                }, {
21                    saturation: -30
22                }]
23            }, {
24                featureType: "road",
25                elementType: "geometry",
26                stylers: [{
27                    lightness: 100
28                }, {
29                    visibility: "simplified"
30                }]
31            }, {
32                featureType: "road",
33                elementType: "labels",
34                stylers: [{
35                    visibility: "on"
36                }]
37            }],
38            r = {
39                center: l,
40                zoom: e,
41                mapTypeId: google.maps.MapTypeId.ROADMAP,
42                scrollwheel: !1,
43                panControl: k,
44                zoomControl: k,
45                zoomControlOptions: {
46                    style: google.maps.ZoomControlStyle.LARGE
47                },
48                mapTypeControl: !1,
49                scaleControl: !1,
50                streetViewControl: !1,
51                disableDoubleClickZoom: !k
52            };
53        window.map = new google.maps.Map(document.getElementById("contact-map"), r), "none" != a && window.map.setOptions({
54            styles: s
55        }), window.infoWindows = [], google.maps.event.addListenerOnce(window.map, "tilesloaded", function() {})
56    }
57
58    function t(e) {
59        for (var o = (parseFloat(n.attr("data-map-level")), parseFloat(n.attr("data-map-lat")), parseFloat(n.attr("data-map-lng")), n.attr("data-map-img")), t = (n.attr("data-overlay-color"), 0), a = 1; a <= Object.keys(hb_gmap).length; a++) ! function(a) {
60            setTimeout(function() {
61                var t = new google.maps.Marker({
62                    position: new google.maps.LatLng(hb_gmap[a].lat, hb_gmap[a].lng),
63                    map: e,
64                    infoWindowIndex: a - 1,
65                    animation: enableAnimation,
66                    icon: o,
67                    optimized: !1
68                });
69                setTimeout(function() {
70                    t.setAnimation(null)
71                }, 200);
72                var n = new google.maps.InfoWindow({
73                    content: hb_gmap[a].ibx,
74                    maxWidth: 300
75                });
76                window.infoWindows.push(n), google.maps.event.addListener(t, "click", function() {
77                    return function() {
78                        window.infoWindows[this.infoWindowIndex].open(e, this)
79                    }
80                }(t, a))
81            }, a * t)
82        }(a)
83    }
84    var a = jQuery(".hb-gmap-map");
85    a.length && ("object" == typeof google && "object" == typeof google.maps ? a.each(function() {
86        function o(e) {
87            var o = new google.maps.Marker({
88                position: new google.maps.LatLng(i, l),
89                map: e,
90                infoWindowIndex: 0,
91                animation: enableAnimation,
92                icon: s,
93                optimized: !1
94            });
95            setTimeout(function() {
96                o.setAnimation(null)
97            }, 200)
98        }
99
100        function t(e) {
101            if (jQuery(window).width() > 690) var o = google.maps.Animation.BOUNCE;
102            else var o = null;
103            for (var t = 1; t <= Object.keys(hb_gmap).length; t++) ! function(t) {
104                setTimeout(function() {
105                    var a = new google.maps.Marker({
106                            position: new google.maps.LatLng(hb_gmap[t].lat, hb_gmap[t].lng),
107                            map: e,
108                            infoWindowIndex: t - 1,
109                            animation: o,
110                            icon: s,
111                            optimized: !1
112                        }),
113                        n = new google.maps.InfoWindow({
114                            content: hb_gmap[t].ibx,
115                            maxWidth: 300
116                        });
117                    w.push(n), google.maps.event.addListener(a, "click", function() {
118                        return function() {
119                            w[this.infoWindowIndex].open(e, this)
120                        }
121                    }(a, t))
122                }, 200 * t)
123            }(t)
124        }
125        var a = jQuery(this),
126            n = parseFloat(a.attr("data-map-level")),
127            i = parseFloat(a.attr("data-map-lat")),
128            l = parseFloat(a.attr("data-map-lng")),
129            s = a.attr("data-map-img"),
130            r = a.attr("data-overlay-color"),
131            p = 0,
132            m = a.attr("data-show-location"),
133            g = a.attr("data-pan-control"),
134            d = a.attr("data-zoom-control");
135        d = "undefined" == typeof d ? !0 : "true" == d ? !0 : !1, g = "undefined" == typeof g ? !0 : "true" == g ? !0 : !1, isNaN(n) && (n = 15), isNaN(i) && (i = 51.47), isNaN(l) && (l = -.268199), "" == r && (r = "none"), jQuery(window).width() > 690 ? (p = 150, enableAnimation = google.maps.Animation.BOUNCE) : enableAnimation = null;
136        var u = new google.maps.LatLng(i, l),
137            c = [{
138                stylers: [{
139                    hue: r
140                }, {
141                    saturation: -30
142                }]
143            }, {
144                featureType: "road",
145                elementType: "geometry",
146                stylers: [{
147                    lightness: 100
148                }, {
149                    visibility: "simplified"
150                }]
151            }, {
152                featureType: "road",
153                elementType: "labels",
154                stylers: [{
155                    visibility: "on"
156                }]
157            }],
158            y = {
159                center: u,
160                zoom: n,
161                mapTypeId: google.maps.MapTypeId.ROADMAP,
162                scrollwheel: !1,
163                panControl: g,
164                zoomControl: d,
165                disableDoubleClickZoom: !d,
166                zoomControlOptions: {
167                    style: google.maps.ZoomControlStyle.LARGE
168                },
169                mapTypeControl: !1,
170                scaleControl: !1,
171                streetViewControl: !1
172            },
173            f = new google.maps.Map(a.get(0), y);
174        "none" != r && f.setOptions({
175            styles: c
176        });
177        var w = [];
178        google.maps.event.addListenerOnce(f, "tilesloaded", function() {
179            if (s.length > 0) {
180                var a = new Image;
181                a.src = s, e(a).load(function() {
182                    "-1" == m ? t(f) : "0" == m && o(f)
183                })
184            } else "-1" == m ? t(f) : "0" == m && o(f)
185        })
186    }) : google.load("maps", "3", {
187        other_params: "key=" + a.attr("data-api-key"),
188        callback: function() {
189            a.each(function() {
190                function o(e) {
191                    var o = new google.maps.Marker({
192                        position: new google.maps.LatLng(i, l),
193                        map: e,
194                        infoWindowIndex: 0,
195                        animation: enableAnimation,
196                        icon: s,
197                        optimized: !1
198                    });
199                    setTimeout(function() {
200                        o.setAnimation(null)
201                    }, 200)
202                }
203
204                function t(e) {
205                    for (var o = 1; o <= Object.keys(hb_gmap).length; o++) ! function(o) {
206                        setTimeout(function() {
207                            var t = new google.maps.Marker({
208                                position: new google.maps.LatLng(hb_gmap[o].lat, hb_gmap[o].lng),
209                                map: e,
210                                infoWindowIndex: o - 1,
211                                animation: enableAnimation,
212                                icon: s,
213                                optimized: !1
214                            });
215                            setTimeout(function() {
216                                t.setAnimation(null)
217                            }, 200);
218                            var a = new google.maps.InfoWindow({
219                                content: hb_gmap[o].ibx,
220                                maxWidth: 300
221                            });
222                            w.push(a), google.maps.event.addListener(t, "click", function() {
223                                return function() {
224                                    w[this.infoWindowIndex].open(e, this)
225                                }
226                            }(t, o))
227                        }, o * p)
228                    }(o)
229                }
230                var a = jQuery(this),
231                    n = parseFloat(a.attr("data-map-level")),
232                    i = parseFloat(a.attr("data-map-lat")),
233                    l = parseFloat(a.attr("data-map-lng")),
234                    s = a.attr("data-map-img"),
235                    r = a.attr("data-overlay-color"),
236                    p = 0,
237                    m = a.attr("data-show-location"),
238                    g = a.attr("data-pan-control"),
239                    d = a.attr("data-zoom-control");
240                d = "undefined" == typeof d ? !0 : "true" == d ? !0 : !1, g = "undefined" == typeof g ? !0 : "true" == g ? !0 : !1, isNaN(n) && (n = 15), isNaN(i) && (i = 51.47), isNaN(l) && (l = -.268199), "" == r && (r = "none"), jQuery(window).width() > 690 ? (p = 150, enableAnimation = google.maps.Animation.BOUNCE) : enableAnimation = null;
241                var u = new google.maps.LatLng(i, l),
242                    c = [{
243                        stylers: [{
244                            hue: r
245                        }, {
246                            saturation: -30
247                        }]
248                    }, {
249                        featureType: "road",
250                        elementType: "geometry",
251                        stylers: [{
252                            lightness: 100
253                        }, {
254                            visibility: "simplified"
255                        }]
256                    }, {
257                        featureType: "road",
258                        elementType: "labels",
259                        stylers: [{
260                            visibility: "on"
261                        }]
262                    }],
263                    y = {
264                        center: u,
265                        zoom: n,
266                        mapTypeId: google.maps.MapTypeId.ROADMAP,
267                        scrollwheel: !1,
268                        panControl: 1,
269                        zoomControl: d,
270                        disableDoubleClickZoom: !d,
271                        zoomControlOptions: {
272                            style: google.maps.ZoomControlStyle.LARGE
273                        },
274                        mapTypeControl: !1,
275                        scaleControl: !1,
276                        streetViewControl: !1
277                    },
278                    f = new google.maps.Map(a.get(0), y);
279                "none" != r && f.setOptions({
280                    styles: c
281                });
282                var w = [];
283                google.maps.event.addListenerOnce(f, "tilesloaded", function() {
284                    if (s.length > 0) {
285                        var a = new Image;
286                        a.src = s, e(a).load(function() {
287                            "-1" == m ? t(f) : "0" == m && o(f)
288                        })
289                    } else "-1" == m ? t(f) : "0" == m && o(f)
290                })
291            })
292        }
293    }));
294    var n = jQuery("#contact-map");
295    if (n.length) {
296        var i = jQuery("#header-dropdown"),
297            l = 0;
298        jQuery("#show-map-button").click(function(e) {
299            jQuery(this).hasClass("close-map") ? (jQuery(i).stop(!0, !1).animate({
300                height: "0px"
301            }, 400, "easeInOutQuad", function() {
302                jQuery(i).css("opacity", 0)
303            }), jQuery("#show-map-button").removeClass("close-map active")) : (e.preventDefault(), jQuery(this).addClass("close-map active"), jQuery(i).stop(!0, !1).animate({
304                height: "380px",
305                opacity: 1
306            }, 400, "easeInOutQuad", function() {
307                0 == l ? google.load("maps", "3", {
308                    other_params: "key=" + n.attr("data-api-key"),
309                    callback: function() {
310                        o(), l = 1, setTimeout(function() {
311                            jQuery("#contact-map").addClass("visible-map"), t(window.map)
312                        }, 500)
313                    }
314                }) : (google.maps.event.trigger(window.map, "resize"), setTimeout(function() {
315                    jQuery("#contact-map").addClass("visible-map")
316                }, 500))
317            }))
318        }), jQuery(".close-map").click(function() {
319            jQuery(i).stop(!0, !1).animate({
320                height: "0px"
321            }, 400, "easeInOutQuad", function() {
322                jQuery(i).css("opacity", 0)
323            }), jQuery("#show-map-button").removeClass("close-map active")
324        })
325    }
326});

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.