Ajout de l'appel a l'API pretalx
This commit is contained in:
parent
dc07b1b415
commit
87005adb44
7 changed files with 344 additions and 2 deletions
17
js/feature-widgets/upcoming-talks.js
Normal file
17
js/feature-widgets/upcoming-talks.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
export function upcomingTalksWidget(feature){
|
||||
if(feature.properties["pretalx-room-id"]){
|
||||
let content = document.createElement("div")
|
||||
content.classList.add("widget")
|
||||
content.classList.add("upcoming-talks-widget")
|
||||
|
||||
let h2 = document.createElement("h2")
|
||||
h2.textContent = "Événements à venir"
|
||||
content.append(h2)
|
||||
|
||||
let list = document.createElement("camp-upcoming-talks")
|
||||
list.roomId = feature.properties["pretalx-room-id"]
|
||||
content.append(list)
|
||||
|
||||
return content
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue