diff --git a/src/report/report_page.html b/src/report/report_page.html index 8cc4e48..72ace46 100644 --- a/src/report/report_page.html +++ b/src/report/report_page.html @@ -88,6 +88,38 @@ markdown = ` document.getElementById('content').innerHTML = marked.parse(markdown); +// Make images clickable +// Credit: https://stackoverflow.com/a/50430187/7346633 +body = $('body') +$('img').addClass('clickable').click(function() { + const src = $(this).attr('src'); + let modal; + + function removeModal() { + modal.remove(); + body.off('keyup.modal-close'); + } + + modal = $('