PageSourceSearch

https://www.kyushu-u.ac.jp/contents_designer/js/init_gmaps.js?1758015468

js kyushu-u.ac.jp collected 2026-09-24 08:34:40 UTC 1,674 bytes, 30 lines download raw bytes

1jQuery(function ($) {
2    $(function(){
3        var gmaps_icon = new google.maps.MarkerImage(CONTENTS_DESIGNER.global.imgUrl  + 'i_gmaps_marker.png', new google.maps.Size(84, 84), new google.maps.Point(0,0), new google.maps.Point(42,42));
4        $('.contents_designer-contents.gmaps', $cd_wrapper).each(function() {
5            var $this = $(this),
6                $gmaps = $('.map-area', $this),
7                $static_map = $('img.staticmap', $gmaps),
8                lat = parseFloat($('.contents_designer-gmaps_lat', $this).val()),
9                lng = parseFloat($('.contents_designer-gmaps_lng', $this).val()),
10                zoom = parseInt($('.contents_designer-gmaps_zoom', $this).val());
11
12            var imageLoader = new Image();
13            imageLoader.onload = function() {
14                var latlng = new google.maps.LatLng(lat, lng);
15                var streetViewControl = true,
16                    mapTypeControl = true;
17                if (!jQuery.support.opacity && !jQuery.support.style && typeof document.documentElement.style.maxHeight == "undefined") {
18                    streetViewControl = false;
19                    mapTypeControl = false;
20                }
21                $gmaps.css({width: $gmaps.width() + 'px', height: $gmaps.height() + 'px'}).gmap({center: latlng, zoom: zoom, scaleControl: true, scrollwheel: true, streetViewControl: streetViewControl, mapTypeControl: mapTypeControl, callback: function () {
22                        $gmaps.gmap('addMarker', {position: latlng, icon: gmaps_icon});
23                    }
24                });
25            };
26            imageLoader.src = $static_map.attr('src');
27
28        });
29    });
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.