'; html2 += '> Se åbningstider'; if(r.pdf!="") { html2 += '
> Hent Tilsynsrapport'; } var infoWindow = new google.maps.InfoWindow({content: html}); var marker = new google.maps.Marker({ position: point, map: map828, title:r.name }); google.maps.event.addListener(marker, 'click', function() { if(openInfoWindow828) { openInfoWindow828.close(); } infoWindow.open(map828, marker); openInfoWindow828 = infoWindow; }); var distance = parseFloat(r.distance); var div = document.createElement('div'); div.innerHTML = html2; /* div.style.cursor = 'pointer'; div.style.marginBottom = '5px'; */ google.maps.event.addDomListener(div, 'click', function() { if(openInfoWindow828) { openInfoWindow828.close(); } infoWindow.open(map828, marker); openInfoWindow828 = infoWindow; }); sidebar.append(div); }); }); } $(document).ready(function (){ load828(); searchLocations(); $('#address').val('Indtast her'); }); //]]>