Ajout de widgets
This commit is contained in:
parent
9c5c4181b2
commit
69568ca0fe
4 changed files with 44 additions and 2 deletions
17
js/feature-widgets/camping-cars.js
Normal file
17
js/feature-widgets/camping-cars.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
export function campingCarsWidget(feature){
|
||||
if(feature.properties["Parking"] && feature.properties["Camping-cars"]){
|
||||
let content = document.createElement("div")
|
||||
content.classList.add("widget")
|
||||
content.classList.add("camping-cars-widget")
|
||||
|
||||
let h2 = document.createElement("h2")
|
||||
h2.textContent = "Camtars et camping cars bienvenus"
|
||||
content.append(h2)
|
||||
|
||||
let p = document.createElement("p")
|
||||
p.textContent = `Vous pouvez dormir sur ce parking. Sur les autres aussi mais celui-ci est particulièrement approprié.`
|
||||
content.append(p)
|
||||
|
||||
return content
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue