Commit ee478f24 authored by Patrick's avatar Patrick
Browse files

added fields to json for youtube & demo

parent 11654731
Pipeline #1980 passed with stage
in 14 seconds
......@@ -11,6 +11,10 @@
"keywords":["CityGML","3D GIS","GIS Analyst","Urban Analytics"],
"description":"The VISION ZERO is an application for safety routing with the visualization of 3D grid and heatmap. Developed at hackathon event 'Neue Wege für die Mobilität in Augsburg'. (24 hours time limited)"
},
"links": {
"youtube": "https://www.youtube.com/watch?v=64Qq31ucGy0",
"demo": "https://m4lab.hft-stuttgart.de/partizipation/"
},
"refIndex": 2
},
{
......@@ -25,6 +29,10 @@
"keywords":["SensorThings API","CityGML","GIS Analyst","3D GIS","GIS Analyst", "Urban Analytics"],
"description":"The 3D E-bike Tracking is a 3D web-based visual analytics application designed showing various parameters from sensor systems equipped on the E-bike sharing system in the study area of a city of Stuttgart, Germany."
},
"links": {
"youtube": "https://www.youtube.com/watch?v=64Qq31ucGy0",
"demo": "https://m4lab.hft-stuttgart.de/partizipation/"
},
"refIndex": 1
},
{
......@@ -39,6 +47,9 @@
"keywords":["CityGML","3D GIS","GIS Analyst","Urban Analytics"],
"description":"The VISION ZERO is an application for safety routing with the visualization of 3D grid and heatmap. Developed at hackathon event 'Neue Wege für die Mobilität in Augsburg'. (24 hours time limited)"
},
"links": {
"demo": "https://m4lab.hft-stuttgart.de/partizipation/"
},
"refIndex": 3
},
{
......@@ -53,6 +64,9 @@
"keywords":["CityGML","3D GIS","GIS Analyst","Urban Analytics"],
"description":"The VISION ZERO is an application for safety routing with the visualization of 3D grid and heatmap. Developed at hackathon event 'Neue Wege für die Mobilität in Augsburg'. (24 hours time limited)"
},
"links": {
"youtube": "https://www.youtube.com/watch?v=64Qq31ucGy0"
},
"refIndex": 4
},
{
......@@ -67,6 +81,8 @@
"keywords":["CityGML","3D GIS","GIS Analyst","Urban Analytics"],
"description":"The VISION ZERO is an application for safety routing with the visualization of 3D grid and heatmap. Developed at hackathon event 'Neue Wege für die Mobilität in Augsburg'. (24 hours time limited)"
},
"links": {
},
"refIndex": 5
},
{
......@@ -81,6 +97,10 @@
"keywords":["CityGML","3D GIS","GIS Analyst","Urban Analytics"],
"description":"The VISION ZERO is an application for safety routing with the visualization of 3D grid and heatmap. Developed at hackathon event 'Neue Wege für die Mobilität in Augsburg'. (24 hours time limited)"
},
"links": {
"youtube": "https://www.youtube.com/watch?v=64Qq31ucGy0",
"demo": "https://m4lab.hft-stuttgart.de/partizipation/"
},
"refIndex": 6
},
{
......@@ -95,6 +115,10 @@
"keywords":["CityGML","3D GIS","GIS Analyst","Urban Analytics"],
"description":"The VISION ZERO is an application for safety routing with the visualization of 3D grid and heatmap. Developed at hackathon event 'Neue Wege für die Mobilität in Augsburg'. (24 hours time limited)"
},
"links": {
"youtube": "https://www.youtube.com/watch?v=64Qq31ucGy0",
"demo": "https://m4lab.hft-stuttgart.de/partizipation/"
},
"refIndex": 7
}
]
\ No newline at end of file
......@@ -2,18 +2,18 @@ function addcontent(item){
var new_row = document.getElementById("row_main")
// Prepare YouTube Link
var array_contains_youtube = true
// var array_contains_youtube = true
var YouTubeHTML = ''
if (array_contains_youtube) { // to be replaced by if (item.YouTubelink) or so...
var YouTubelink = "#" // to be replaced by item.YouTubelink or so...
if ('youtube' in item.links) { // to be replaced by if (item.YouTubelink) or so...
var YouTubelink = item.links.youtube // to be replaced by item.YouTubelink or so...
YouTubeHTML = `<a class="btn btn-sm btn-outline-danger" href="${YouTubelink}">YouTube</a>`
}
// Prepare Explore Link
var array_contains_explore_link = true
// var array_contains_explore_link = true
var ExploreHTML = ''
if (array_contains_explore_link) { // to be replaced by if (item.YouTubelink) or so...
var ExploreLink = "#" // to be replaced by item.ExploreLink or so...
if ('demo' in item.links) { // to be replaced by if (item.YouTubelink) or so...
var ExploreLink = item.links.demo // to be replaced by item.ExploreLink or so...
ExploreHTML = `<a class="btn btn-sm btn-outline-secondary" href="${ExploreLink}">Explore</a>`
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment