diff --git a/css/60_photos.css b/css/60_photos.css index 2184940b2..cb794cc33 100644 --- a/css/60_photos.css +++ b/css/60_photos.css @@ -142,6 +142,12 @@ } .osc-attribution a, +.osc-attribution a:visited, .osc-attribution span { padding: 4px 2px; + color: #fff; +} +.osc-attribution a:active, +.osc-attribution a:hover { + color: #77ddff; } diff --git a/modules/services/mapillary.js b/modules/services/mapillary.js index b9d3a5a61..7b266a511 100644 --- a/modules/services/mapillary.js +++ b/modules/services/mapillary.js @@ -539,12 +539,12 @@ export default { var attribution = d3_select('.mapillary-js-dom .Attribution'); var capturedAt = attribution.selectAll('.captured-at'); if (capturedAt.empty()) { - attribution - .append('span') - .text('|'); capturedAt = attribution - .append('span') + .insert('span', ':last-child') .attr('class', 'captured-at'); + attribution + .insert('span', ':last-child') + .text('|'); } capturedAt .text(timestamp); diff --git a/modules/services/openstreetcam.js b/modules/services/openstreetcam.js index 593fc3be4..494bfa3f4 100644 --- a/modules/services/openstreetcam.js +++ b/modules/services/openstreetcam.js @@ -314,6 +314,7 @@ export default { attribution .append('a') .attr('class', 'captured_by') + .attr('target', '_blank') .attr('href', apibase + '/user/' + d.captured_by) .text('@' + d.captured_by); @@ -336,6 +337,7 @@ export default { attribution .append('a') .attr('class', 'image_link') + .attr('target', '_blank') .attr('href', apibase + '/details/' + d.sequence_id + '/' + d.sequence_index) .text('openstreetcam.org'); }