PageSourceSearch

https://social.tn/themes/custom/jango/assets/plugins/gmaps/api.js?v=1.x

js social.tn collected 2026-10-02 14:51:08 UTC 1,314 bytes, 53 lines download raw bytes

1var PageContact2 = function () {
2
3    var lat, lng, scrollwheel, type, address;
4    var gmapbg = document.getElementById('gmapbg');
5
6    if(gmapbg != null) {
7      lat = gmapbg.getAttribute('data-lat');
8      lng = gmapbg.getAttribute('data-lng');
9      scrollwheel = gmapbg.getAttribute('data-scrollwheel');
10      type = gmapbg.getAttribute('data-type');
11      address = gmapbg.getAttribute('data-address');
12    }
13
14    var _init = function () {
15        if (type == 'panorama') {
16            var mapbg = GMaps.createPanorama({
17                el: '#gmapbg',
18                lat: lat,
19                lng: lng,
20                scrollwheel: scrollwheel
21            });
22        }
23        else if(gmapbg) {
24            var mapbg = new GMaps({
25                div: '#gmapbg',
26                lat: lat,
27                lng: lng,
28                scrollwheel: scrollwheel
29            });
30
31            mapbg.addMarker({
32                lat: lat,
33                lng: lng,
34                title: 'Your Location',
35                infoWindow: {
36                    content: address
37                }
38            });
39        }
40    }
41
42    return {
43        //main function to initiate the module
44        init: function () {
45            _init();
46        }
47
48    };
49}();
50
51$(document).ready(function () {
52    PageContact2.init();
53});

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.