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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user