From 64d825495c7db06686cada9071ef5913d112e07c Mon Sep 17 00:00:00 2001 From: Joe TS Dell Date: Fri, 28 May 2021 10:41:10 +0200 Subject: [PATCH] update content --- public/content/content.json | 2 +- public/css/main.css | 2 +- public/js/add_content.js | 27 ++++++++++++++++++--------- 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/public/content/content.json b/public/content/content.json index 063a08c..f8f11ed 100644 --- a/public/content/content.json +++ b/public/content/content.json @@ -6,7 +6,7 @@ "author": { "firstName": "Maxim", "lastName": "Rossknecht", - "hftURL": "#" + "hftURL": "https://www.researchgate.net/profile/Maxim-Rossknecht" }, "project_year_start": "2020", "project_year_end": "2020", diff --git a/public/css/main.css b/public/css/main.css index dbf43d8..aea0c76 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -111,7 +111,7 @@ a.button { /* min-height: 445px; */ /* max-height: 445px; */ /* margin: 20px; */ - height: 500px; + height: 610px; } .py-5{ diff --git a/public/js/add_content.js b/public/js/add_content.js index 66f7609..18d029f 100644 --- a/public/js/add_content.js +++ b/public/js/add_content.js @@ -9,11 +9,7 @@ function addcontent(item) { // 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 @@ -26,10 +22,22 @@ function addcontent(item) { } // Prepare Explore Link // var array_contains_explore_link = 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 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` + if ('demo' in item.links) { + var ExploreLink = item.links.demo + ExploreHTML = ` Explore` + } + + var publicationHTML = '' + if ('publication' in item.links) { + var publicationLink = item.links.publication + publicationHTML = ` Publication` } new_row.innerHTML = new_row.innerHTML + '
' + @@ -45,7 +53,8 @@ function addcontent(item) { ' ' + item.item.author.lastName + '
' + '' + lang_keywords + ': ' + item.item.keywords.join(', ') + '
' + ExploreHTML + ' ' + - YouTubeHTML + + YouTubeHTML + ' ' + + publicationHTML + ' ' + '

' + '
' + '' + -- GitLab