Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) E:\nuevo\htdocs\bogotacumbredelclima\wp-content\themes\patti\js\custom\ drwxrwxrwx |
Viewing file: custom-map.js (2.19 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | jQuery(document).ready(function() { //Google Map jQuery('.map-wrapper[id^="delicious_map_"]').each( function() { var $div = jQuery(this); var token = $div.data('token'); var settingObj = window['dt_map_' + token]; var id = settingObj.id; jQuery("#delicious_map_"+settingObj.id+" .button-map").click(function() { var latlng = new google.maps.LatLng(settingObj.latitude,settingObj.longitude); var settings = { zoom: 14, center: new google.maps.LatLng(settingObj.latitude,settingObj.longitude), mapTypeId: google.maps.MapTypeId.ROADMAP, mapTypeControl: false, scrollwheel: false, draggable: true, navigationControl: false }; var map = new google.maps.Map(document.getElementById("google_map_"+settingObj.id+""), settings); google.maps.event.addDomListener(window, "resize", function() { var center = map.getCenter(); google.maps.event.trigger(map, "resize"); map.setCenter(center); }); var contentString = '<div class="map-tooltip">'+ '<h6>'+settingObj.pin_title+'</h6>'+ '<p>'+settingObj.pin_desc+'</p>'+ '</div>'; var infowindow = new google.maps.InfoWindow({ content: contentString }); var companyImage = new google.maps.MarkerImage(settingObj.site_url+'/images/map-pin.png', new google.maps.Size(40,70),<!-- Width and height of the marker --> new google.maps.Point(0,0), new google.maps.Point(20,55)<!-- Position of the marker --> ); var companyPos = new google.maps.LatLng(settingObj.latitude,settingObj.longitude); var companyMarker = new google.maps.Marker({ position: companyPos, map: map, icon: companyImage, zIndex: 3}); google.maps.event.addListener(companyMarker, 'click', function() { infowindow.open(map,companyMarker); }); //Google Map click Show/Hide jQuery("#google_map_"+settingObj.id+"").slideToggle(300, function(){ google.maps.event.trigger(map, "resize"); // resize map map.setCenter(latlng); // set the center }); // slide it down jQuery(this).toggleClass('close-map show-map'); }); }); }); |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0156 ]-- |