Skip to content

Commit

Permalink
Show copyright for images
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-milovidov committed Mar 29, 2024
1 parent c02b98f commit 94bd67c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,10 @@
let picture = document.getElementById('picture');
picture.style.display = 'block';
picture.firstChild.src = data.src;
document.getElementById('picture-copyright').innerHTML = data.attr;
let copyright = document.getElementById('picture-copyright');
copyright.innerHTML = data.attr;
/// Sometimes there are tables, paragraphs, etc. Strip them.
copyright.innerHTML = copyright.innerText;
}
});
});
Expand Down

0 comments on commit 94bd67c

Please sign in to comment.