PageSourceSearch

https://www.studioaleo.it/appsresources/googleMapsPA.js

js studioaleo.it collected 2026-10-03 18:48:47 UTC 1,333 bytes, 30 lines download raw bytes

1function triggerGoogleMapsLoaded() {
2    _jq(window).trigger('GoogleMapsLoaded');
3}
4
5function paGoogleMaps(id, fullWidth) {
6    var jqContainer = _jq('#' + id);
7
8    var obj = {};
9    obj.container = jqContainer;
10    obj.createIFrame = function (url, width) {
11        var w = width ? width : '100%';
12        var iframe = _jq('<iframe width="' + w + '" height="' + w + '" frameborder="0" style="border:0; max-width: 100%; vertical-align: bottom;" src="' + url + '"></iframe>');
13        jqContainer.append(_jq('<div class="container ' + (fullWidth ? 'fullWidth' : 'normalWidth') + '" />').append(_jq('<div class="map_container" />').append(iframe)));
14        return iframe;
15    };
16    obj.loadMap = function (address, url) {
17        new google.maps.Geocoder().geocode({ address: address }, function (results, status) {
18            var lat = results[0].geometry.location.lat();
19            var lng = results[0].geometry.location.lng();
20            obj.createIFrame(url + lat + ',' + lng);
21        });
22    };
23    obj.loadGMAPI = function (key) {
24        var gm_script = _jq('#gm_script');
25        if (gm_script.length === 0) {
26            jqContainer.append('<script id="gm_script" src=\"https://maps.googleapis.com/maps/api/js?key=' + key + '&callback=triggerGoogleMapsLoaded\" async defer></script>')
27        }
28    };
29    return obj;
30}

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.