Mareste harta'+ ''+ ''; var infowindow = new google.maps.InfoWindow({ content: contentString, maxWidth: 200 }); if (Foundation.MediaQuery.atLeast('medium')) { var mapmarker = { url: '/images/mapmarker.png', size: new google.maps.Size(50, 52), scaledSize: new google.maps.Size(50, 52) }; var marker = new google.maps.Marker({ animation: google.maps.Animation.DROP, position: new google.maps.LatLng(46.739987, 23.4897999), map: map, icon: mapmarker, title: 'Confidens' }); } else { var mapmarker = { url: '/images/mapmarker.png', size: new google.maps.Size(50, 52), scaledSize: new google.maps.Size(50, 52) }; var marker = new google.maps.Marker({ animation: google.maps.Animation.DROP, position: new google.maps.LatLng(46.739999, 23.4897999), map: map, icon: mapmarker, title: 'Confidens' }); } setTimeout(function(){ infowindow.open(map, marker); },1000); } function toggleBounce() { if (marker.getAnimation() !== null) { marker.setAnimation(null); } else { marker.setAnimation(google.maps.Animation.BOUNCE); } } $("#map-toggler").click(function() { $("#map").toggleClass("fullscreen"); $("#map-toggler").toggleClass("clicked"); ($("#map-toggler").text() === "Închide harta") ? $("#map-toggler").text("Marește harta") : $("#map-toggler").text("Închide harta"); init(); });