Commit 11654731 authored by Joe TS Dell's avatar Joe TS Dell
Browse files

update logic for adding content

parent b194313d
Pipeline #1979 passed with stage
in 38 seconds
...@@ -54,7 +54,7 @@ body{ ...@@ -54,7 +54,7 @@ body{
a { a {
color: #ff6464; color: #ff6464;
text-decoration: underline; /* text-decoration: underline; */
background-color: transparent; background-color: transparent;
} }
a:hover{ a:hover{
...@@ -164,4 +164,5 @@ a.button { ...@@ -164,4 +164,5 @@ a.button {
main[role=main]{ main[role=main]{
background-color: #f8f9fa!important; background-color: #f8f9fa!important;
padding-bottom: 1rem!important; padding-bottom: 1rem!important;
} }
\ No newline at end of file
function addcontent(item){ function addcontent(item){
var new_row = document.getElementById("row_main") var new_row = document.getElementById("row_main")
// Prepare YouTube Link
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...
YouTubeHTML = `<a class="btn btn-sm btn-outline-danger" href="${YouTubelink}">YouTube</a>`
}
// Prepare Explore Link
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...
ExploreHTML = `<a class="btn btn-sm btn-outline-secondary" href="${ExploreLink}">Explore</a>`
}
new_row.innerHTML = new_row.innerHTML + '<div class="col-lg-4">' + new_row.innerHTML = new_row.innerHTML + '<div class="col-lg-4">' +
'<div class="card mb-4 shadow-sm extension">' + '<div class="card mb-4 shadow-sm extension">' +
'<h5>'+ item.item.title +' <span class="lead text-muted"> ' + item.item.project + '</span></h5>' + '<h5>'+ item.item.title +' <span class="lead text-muted"> ' + item.item.project + '</span></h5>' +
...@@ -13,10 +28,9 @@ function addcontent(item){ ...@@ -13,10 +28,9 @@ function addcontent(item){
'<b><i class="fas fa-user"></i> Contact Person</b>: <a' + '<b><i class="fas fa-user"></i> Contact Person</b>: <a' +
'href="https://www.hft-stuttgart.de/p/thunyathep-santhanavanich"> ' + item.item.author.firstName + 'href="https://www.hft-stuttgart.de/p/thunyathep-santhanavanich"> ' + item.item.author.firstName +
' ' + item.item.author.lastName + '</a> <br>' + ' ' + item.item.author.lastName + '</a> <br>' +
'<b><i class="fas fa-star"></i> Keywords</b>: ' + item.item.keywords.join(', ') + '<b><i class="fas fa-star"></i> Keywords</b>: ' + item.item.keywords.join(', ') + '</br>' +
'<form action="iStoeckHM.html" class="form-signin" method="GET">' + ExploreHTML + '&nbsp;' +
'<button type="submit" class="btn btn-sm btn-outline-secondary">Explore</button>' + YouTubeHTML +
'</form>' +
'</p>' + '</p>' +
'</div>' + '</div>' +
'</div>' + '</div>' +
......
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