Skip to content

Commit

Permalink
Merge pull request #329 from abrignoni/offwork
Browse files Browse the repository at this point in the history
Misc updates
  • Loading branch information
abrignoni authored Feb 6, 2023
2 parents fcf4a3d + b6bbbf1 commit 9f7b58c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ilapfuncs.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,11 @@ def relative_paths(source, splitter):
if 'video' in mimetype:
thumb = f'<video width="320" height="240" controls="controls"><source src="{source}" type="video/mp4">Your browser does not support the video tag.</video>'
elif 'image' in mimetype:
thumb = f'<img src="{source}"width="300"></img>'
thumb = f'<a href="{source}" target="_blank"><img src="{source}"width="300"></img></a>'
elif 'audio' in mimetype:
thumb = f'<audio controls><source src="{source}" type="audio/ogg"><source src="{source}" type="audio/mpeg">Your browser does not support the audio element.</audio>'
else:
thumb = f'<a href="{source}"> Link to {mimetype} </>'
thumb = f'<a href="{source}" target="_blank"> Link to {mimetype} </>'
return thumb

def kmlgen(report_folder, kmlactivity, data_list, data_headers):
Expand Down

0 comments on commit 9f7b58c

Please sign in to comment.