PageSourceSearch

https://www.graceleedydentistry.com/wp-content/uploads/2025/05/changes_bffqipo_migrated.js

js graceleedydentistry.com collected 2026-10-04 16:08:02 UTC 12,688 bytes, 416 lines download raw bytes

1/* var flag = false;
2setInterval(function () {
3    console.log("method called");
4    if (typeof google === 'object' && typeof google.maps === 'object' && flag === false) {
5        $(function () {
6            var obj = $("div#content").append("Phone: <a href='tel:3039890452'>(303) 989-0452</a>");
7        });
8        flag = true;
9        console.log('added marker');
10    }
11}, 3000); */
12
13var iframeLocElement = document.querySelector(".location-container");
14
15if (iframeLocElement) {
16  // Create a new element with the desired HTML content
17  var newElement = document.createElement("div");
18  newElement.id = "location-map1698302937290";
19  newElement.style.width = "100%";
20  newElement.style.height = "400px";
21  newElement.style.margin = "0px";
22  newElement.style.position = "relative";
23  newElement.innerHTML =
24    '<div id="iframe-loc single-loc1698335807149" style="width: 100%; height: 400px; position: relative; overflow: hidden"></div>';
25  // var htmlToPrepend =
26  // '<div class="location-container class-google-map-loaded" id="" style="width: 100%; height: 400px; margin: 0px; position: relative"></div>';
27  // iframeLocElement.insertAdjacentHTML("beforebegin", htmlToPrepend);
28  iframeLocElement.parentNode.replaceChild(newElement, iframeLocElement);
29}
30
31// Replace the old element with the new one
32
33function initMap1698302937290() {
34  var map = new google.maps.Map(
35    document.getElementById("location-map1698302937290"),
36    {
37      center: { lat: 39.6808505, lng: -105.118401 },
38      zoom: 16,
39      styles: [
40        {
41          featureType: "all",
42          elementType: "labels",
43          stylers: [
44            {
45              visibility: "off",
46            },
47          ],
48        },
49        {
50          featureType: "administrative",
51          elementType: "labels",
52          stylers: [
53            {
54              visibility: "off",
55            },
56          ],
57        },
58        {
59          featureType: "administrative",
60          elementType: "labels.text.fill",
61          stylers: [
62            {
63              color: "#444444",
64            },
65            {
66              visibility: "off",
67            },
68          ],
69        },
70        {
71          featureType: "administrative.neighborhood",
72          elementType: "labels",
73          stylers: [
74            {
75              visibility: "off",
76            },
77          ],
78        },
79        {
80          featureType: "landscape",
81          elementType: "all",
82          stylers: [
83            {
84              visibility: "on",
85            },
86            {
87              color: "#e0dfe0",
88            },
89          ],
90        },
91        {
92          featureType: "landscape",
93          elementType: "labels",
94          stylers: [
95            {
96              visibility: "off",
97            },
98          ],
99        },
100        {
101          featureType: "poi",
102          elementType: "all",
103          stylers: [
104            {
105              visibility: "off",
106            },
107          ],
108        },
109        {
110          featureType: "poi",
111          elementType: "labels",
112          stylers: [
113            {
114              visibility: "off",
115            },
116          ],
117        },
118        {
119          featureType: "poi.park",
120          elementType: "geometry",
121          stylers: [
122            {
123              color: "#a8a9a8",
124            },
125            {
126              visibility: "on",
127            },
128          ],
129        },
130        {
131          featureType: "road",
132          elementType: "all",
133          stylers: [
134            {
135              saturation: -100,
136            },
137            {
138              lightness: 45,
139            },
140          ],
141        },
142        {
143          featureType: "road",
144          elementType: "geometry.fill",
145          stylers: [
146            {
147              visibility: "on",
148            },
149            {
150              color: "#5b5b5a",
151            },
152          ],
153        },
154        {
155          featureType: "road",
156          elementType: "labels",
157          stylers: [
158            {
159              visibility: "off",
160            },
161          ],
162        },
163        {
164          featureType: "road.highway",
165          elementType: "all",
166          stylers: [
167            {
168              visibility: "simplified",
169            },
170          ],
171        },
172        {
173          featureType: "road.highway",
174          elementType: "labels",
175          stylers: [
176            {
177              visibility: "off",
178            },
179          ],
180        },
181        {
182          featureType: "road.arterial",
183          elementType: "labels.icon",
184          stylers: [
185            {
186              visibility: "off",
187            },
188          ],
189        },
190        {
191          featureType: "transit",
192          elementType: "all",
193          stylers: [
194            {
195              visibility: "off",
196            },
197          ],
198        },
199        {
200          featureType: "transit",
201          elementType: "labels",
202          stylers: [
203            {
204              visibility: "off",
205            },
206          ],
207        },
208        {
209          featureType: "water",
210          elementType: "all",
211          stylers: [
212            {
213              color: "#ffffff",
214            },
215            {
216              visibility: "on",
217            },
218          ],
219        },
220        {
221          featureType: "water",
222          elementType: "labels",
223          stylers: [
224            {
225              visibility: "off",
226            },
227          ],
228        },
229      ],
230    }
231  );
232  var infowindow = new google.maps.InfoWindow({
233    size: new google.maps.Size(150, 50),
234  });
235
236  let location_data_current = location_data.filter((item) => {
237    return item.id === undefined;
238  });
239
240  if (!location_data_current.length) {
241    location_data_current = location_data[0];
242  } else {
243    location_data_current = location_data_current[0];
244  }
245
246  if (location_data_current) {
247    var marker;
248    if (false) {
249      location_data.map((loc) => {
250        marker = new google.maps.Marker({
251          map,
252          draggable: false,
253          position: { lat: Number(loc.latitude), lng: Number(loc.longitude) },
254        });
255        const content =
256          '<div id="content" style="text-align: center;padding:3px 15px;">' +
257          '<div id="siteNotice">' +
258          "</div>" +
259          '<h4 id="firstHeading" class="firstHeading">' +
260          profile.organisation +
261          "</h4>" +
262          '<div id="bodyContent">' +
263          "<p>" +
264          loc.address_display +
265          "</p><p class='phone'>Phone: (303) 989-0452</p></div></div>";
266        google.maps.event.addListener(
267          marker,
268          "click",
269          (function (marker, content, infowindow) {
270            return function () {
271              infowindow.setContent(content);
272              infowindow.open(map, marker);
273            };
274          })(marker, content, infowindow)
275        );
276      });
277    } else {
278      marker = new google.maps.Marker({
279        map,
280        draggable: false,
281        position: {
282          lat: Number(location_data_current.latitude),
283          lng: Number(location_data_current.longitude),
284        },
285      });
286    }
287
288    // map.controls[google.maps.ControlPosition.TOP].push(input);
289    // Bias the SearchBox results towards current map's viewport.
290    let contentString = "";
291    if (location_data_current) {
292      contentString =
293        '<div id="content" style="text-align: center;padding:3px 15px;">' +
294        '<div id="siteNotice">' +
295        "</div>" +
296        '<h4 id="firstHeading" class="firstHeading">' +
297        profile.organisation +
298        "</h4>" +
299        '<div id="bodyContent">' +
300        "<p>" +
301        location_data_current.address_display +
302        "</p>" +
303        "<p class='phone'>Phone: (303) 989-0452</p>";
304    }
305
306    contentString += "</div>" + "</div>";
307
308    if (true) {
309      google.maps.event.addListener(marker, "dragend", function () {
310        geocodePosition(marker.getPosition());
311      });
312      google.maps.event.addListener(marker, "click", function () {
313        infowindow.setContent(contentString);
314        infowindow.open(map, marker);
315      });
316      google.maps.event.trigger(marker, "click");
317    }
318
319    var latLng = marker.getPosition(); // returns LatLng object
320  }
321  map.setCenter(latLng);
322}
323function loadMapScript1698302937290() {
324  console.log("loadMapScript function with new backend api changes called");
325  if (
326    typeof google === "undefined" ||
327    google === null ||
328    typeof google.maps === "undefined"
329  ) {
330    console.log("calling backend api from gpserve for google maps js ");
331    fetch("https://api.growthplug.com/google-maps-js/")
332      .then(async (res) => {
333        const mapResp = await res.text();
334        if (!document.getElementById("google-map-script")) {
335          const mapScript = document.createElement("script");
336          mapScript.setAttribute("id", "google-map-script");
337          mapScript.setAttribute("type", "text/javascript");
338          mapScript.innerHTML = mapResp;
339          document.body.appendChild(mapScript);
340        }
341        const mapScript = document.getElementById("google-map-script");
342        if (mapResp.innerHTML === "") {
343          mapScript.innerHTML = mapResp;
344        }
345        initMap1698302937290();
346      })
347      .catch((e) => console.log(e));
348  } else {
349    initMap1698302937290();
350  }
351}
352
353loadMapScript1698302937290();
354
355$("#location > div > div > div > div > div:nth-child(2) > div").append(
356  '<p class="info append__txt">Mondays only front desk coverage</p>'
357);
358
359$("li.header-links:has(.subMenu-1)").append(
360  '<i aria-hidden="true" class="fa fa-caret-down" style="margin-left: 4px;"></i>'
361);
362
363$(".location.padding-bottom-0 a.btn.btn-primary").html(
364  "Request an Appointment"
365);
366
367$('.location-info p:has(a[aria-label="3039890452"])').html(
368  'Call or Text Us: <a href="tel:(303) 989-0452">(303) 989-0452</a>'
369);
370
371$(".row.margin-top-10.day").prepend(
372  '<select autocomplete="off" class="form-control serviceDropdown" id="serviceDropdown" name="Service"><option value="" disabled="" selected="">Select a Service</option><option value="Implant Dentistry">Implant Dentistry</option><option value="Periodontal Dentistry">Periodontal Dentistry</option><option value="Preventative Care">Preventative Care</option><option value="Restorative Dentistry">Restorative Dentistry</option><option value="Sleep Dentistry">Sleep Dentistry</option><option value="Routine Dental Exam/Cleaning">Routine Dental Exam/Cleaning</option></select>'
373);
374
375$("#profile .appointment-modal__doctor[data-select-team='5271']").click(
376  function () {
377    reset();
378    $("#serviceDropdown").html(
379      '<option value="" disabled="" selected="">Select a Service</option><option value="Implant Dentistry">Implant Dentistry</option><option value="Periodontal Dentistry">Periodontal Dentistry</option><option value="Restorative Dentistry">Restorative Dentistry</option><option value="Sleep Dentistry">Sleep Dentistry</option><option value="Routine Dental Exam/Cleaning">Routine Dental Exam/Cleaning</option>'
380    );
381    $("#messages .inline[data-day='Monday']").hide();
382    $("#messages .inline[data-day='Friday']").hide();
383  }
384);
385
386$("#profile .appointment-modal__doctor[data-select-team='5270']").click(
387  function () {
388    reset();
389    $("#messages .inline[data-day='Monday']").hide();
390  }
391);
392
393$("#profile .appointment-modal__doctor[data-select-team='5269']").click(
394  function () {
395    reset();
396    $("#serviceDropdown").html(
397      '<option value="" disabled="" selected="">Select a Service</option><option value="Implant Dentistry">Implant Dentistry</option><option value="Periodontal Dentistry">Periodontal Dentistry</option><option value="Restorative Dentistry">Restorative Dentistry</option><option value="Sleep Dentistry">Sleep Dentistry</option><option value="Routine Dental Exam/Cleaning">Routine Dental Exam/Cleaning</option>'
398    );
399    $("#messages .inline[data-day='Monday']").hide();
400  }
401);
402
403function reset() {
404  $("#serviceDropdown").html(
405    '<option value="" disabled="" selected="">Select a Service</option><option value="Implant Dentistry">Implant Dentistry</option><option value="Periodontal Dentistry">Periodontal Dentistry</option><option value="Preventative Care">Preventative Care</option><option value="Restorative Dentistry">Restorative Dentistry</option><option value="Sleep Dentistry">Sleep Dentistry</option><option value="Routine Dental Exam/Cleaning">Routine Dental Exam/Cleaning</option>'
406  );
407  $("#messages .inline[data-day='Monday']").show();
408  $("#messages .inline[data-day='Tuesday']").show();
409  $("#messages .inline[data-day='Wednesday']").show();
410  $("#messages .inline[data-day='Thursday']").show();
411  $("#messages .inline[data-day='Friday']").show();
412}
413
414$(".modal-close").click(function () {
415  reset();
416});

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.