From 78a37c87b776ce308f92eee10f95fe2658896e8b Mon Sep 17 00:00:00 2001 From: the-digital-anarchist Date: Fri, 23 Sep 2022 14:23:45 +0200 Subject: [PATCH] adds audio and video to leaflet map popup --- data/geojsonContributors.json | 11 ++++-- .../lumbung-theme/layouts/shortcodes/map.html | 35 +++++++++++++------ 2 files changed, 33 insertions(+), 13 deletions(-) diff --git a/data/geojsonContributors.json b/data/geojsonContributors.json index eda46a2..971d5dd 100644 --- a/data/geojsonContributors.json +++ b/data/geojsonContributors.json @@ -23,7 +23,10 @@ "Rayya Badran", "Siwar Kraitm", "Yazan Khalili" - ] + ], + "video": "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm", + "iframe": "https://tv.lumbung.space/videos/embed/d5b26273-cb7e-4f5e-9041-5694a504405e?title=0", + "audio": "https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3" } }, { @@ -48,7 +51,8 @@ "Rayya Badran", "Siwar Kraitm", "Yazan Khalili" - ] + ], + "iframe": "https://tv.lumbung.space/videos/embed/d5b26273-cb7e-4f5e-9041-5694a504405e?title=0" } }, { @@ -73,7 +77,8 @@ "Rayya Badran", "Siwar Kraitm", "Yazan Khalili" - ] + ], + "iframe": "https://tv.lumbung.space/videos/embed/d5b26273-cb7e-4f5e-9041-5694a504405e?title=0" } }, { diff --git a/themes/lumbung-theme/layouts/shortcodes/map.html b/themes/lumbung-theme/layouts/shortcodes/map.html index 9cf74ff..eb32332 100644 --- a/themes/lumbung-theme/layouts/shortcodes/map.html +++ b/themes/lumbung-theme/layouts/shortcodes/map.html @@ -38,28 +38,43 @@