1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-06-05 21:59:25 +02:00

display event picture (#23)

This commit is contained in:
Daniel Waxweiler
2024-08-04 18:31:29 +02:00
committed by GitHub
parent a543a25a8a
commit 0edad986d3
5 changed files with 84 additions and 3 deletions

View File

@ -5,3 +5,10 @@ export function createAnchorElement({ document, text, url }) {
a.innerHTML = text
return a
}
export function createImageElement({ document, alt, src }) {
const img = document.createElement('img')
img.setAttribute('alt', alt)
img.setAttribute('src', src)
return img
}