diff --git a/worldmap-save.c b/worldmap-save.c index 21a0810b1..e7448fd4e 100644 --- a/worldmap-save.c +++ b/worldmap-save.c @@ -17,14 +17,14 @@ void put_HTML_date(struct membuffer *b, struct dive *dive) { struct tm tm; utc_mkdate(dive->when, &tm); - put_format(b, "

date=%04u-%02u-%02u

", tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday); - put_format(b, "

time=%02u:%02u:%02u

", tm.tm_hour, tm.tm_min, tm.tm_sec); + put_format(b, "

Date: %04u-%02u-%02u

", tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday); + put_format(b, "

Time: %02u:%02u:%02u

", tm.tm_hour, tm.tm_min, tm.tm_sec); } void put_HTML_temp(struct membuffer *b, struct dive *dive) { - put_temperature(b, dive->airtemp, "

Air Temp: ", " C\\'

"); - put_temperature(b, dive->watertemp, "

Water Temp: ", " C\\'

"); + put_temperature(b, dive->airtemp, "

Air Temp: ", "°C

"); + put_temperature(b, dive->watertemp, "

Water Temp: ", "°C

"); } char *replace_char(char *str, char replace, char *replace_by) @@ -78,7 +78,7 @@ void put_HTML_notes(struct membuffer *b, struct dive *dive) { if (dive->notes) { char *notes = quote(dive->notes); - put_format(b, "

Notes : %s

", notes); + put_format(b, "

Notes: %s

", notes); free(notes); } } @@ -99,8 +99,10 @@ void writeMarkers(struct membuffer *b, const bool selected_only) put_degrees(b, dive->latitude, "temp = new google.maps.Marker({position: new google.maps.LatLng(", ""); put_degrees(b, dive->longitude, ",", ")});\n"); put_string(b, "markers.push(temp);\ntempinfowindow = new google.maps.InfoWindow({content: '
'+'
'+'
'+'
"); + put_format(b, "

%s

", dive->location); put_HTML_date(b, dive); - put_duration(b, dive->duration, "

duration=", " min

"); + put_duration(b, dive->duration, "

Duration: ", " min

"); + put_depth(b, dive->maxdepth, "

Max Depth: ", " m

"); put_HTML_temp(b, dive); put_HTML_notes(b, dive); put_string(b, "

'+'
'+'
'});\ninfowindows.push(tempinfowindow);\n");