function addcontent(item){ var new_row = document.getElementById("row_main") if(item === undefined) { }else{ // Prepare YouTube Link // var array_contains_youtube = true var YouTubeHTML = '' 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 = `YouTube` } var description = "" if (lang_setting == "1"){ description = item.item.description_en } else if (lang_setting == "2"){ description = item.item.description_de } // Prepare Explore Link // var array_contains_explore_link = true var ExploreHTML = '' 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 = `Explore` } new_row.innerHTML = new_row.innerHTML + '
' + '
' + '
'+ item.item.title +' ' + item.item.project + '
' + '' + '
' + '

' + description + '
' + ' Contact Person: ' + item.item.author.firstName + ' ' + item.item.author.lastName + '
' + ' Keywords: ' + item.item.keywords.join(', ') + '
' + ExploreHTML + ' ' + YouTubeHTML + '

' + '
' + '
' + '
' } }