1(function($){ 2 $(document).ready(function(){ 3 4 // Google Maps 5 //----------------------------------------------- 6 if ($("#map-canvas").length>0) { 7 var map, myLatlng, myZoom, marker; 8 // Set the coordinates of your location 9 myLatlng = new google.maps.LatLng(51.696601, -0.193191); 10 11 myZoom = 6; 12 function initialize() { 13 var mapOptions = { 14 zoom: myZoom, 15 mapTypeId: google.maps.MapTypeId.ROADMAP, 16 center: myLatlng, 17 scrollwheel: false 18 }; 19 map = new google.maps.Map(document.getElementById("map-canvas"),mapOptions); 20 marker = new google.maps.Marker({ 21 map:map, 22 draggable:true, 23 animation: google.maps.Animation.DROP, 24 position: myLatlng 25 }); 26 google.maps.event.addDomListener(window, "resize", function() { 27 map.setCenter(myLatlng); 28 }); 29 } 30 google.maps.event.addDomListener(window, "load", initialize); 31 } 32 }); // End document ready 33 34})(this.jQuery);
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.