Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Joe T.S.
3dgeovisclient
Commits
11654731
Commit
11654731
authored
Feb 17, 2021
by
Joe TS Dell
Browse files
update logic for adding content
parent
b194313d
Pipeline
#1979
passed with stage
in 38 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
public/rgc_website/css/main.css
View file @
11654731
...
...
@@ -54,7 +54,7 @@ body{
a
{
color
:
#ff6464
;
text-decoration
:
underline
;
/*
text-decoration: underline;
*/
background-color
:
transparent
;
}
a
:hover
{
...
...
@@ -165,3 +165,4 @@ main[role=main]{
background-color
:
#f8f9fa
!important
;
padding-bottom
:
1rem
!important
;
}
public/rgc_website/js/add_content.js
View file @
11654731
function
addcontent
(
item
){
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">
'
+
'
<div class="card mb-4 shadow-sm extension">
'
+
'
<h5>
'
+
item
.
item
.
title
+
'
<span class="lead text-muted">
'
+
item
.
item
.
project
+
'
</span></h5>
'
+
...
...
@@ -13,10 +28,9 @@ function addcontent(item){
'
<b><i class="fas fa-user"></i> Contact Person</b>: <a
'
+
'
href="https://www.hft-stuttgart.de/p/thunyathep-santhanavanich">
'
+
item
.
item
.
author
.
firstName
+
'
'
+
item
.
item
.
author
.
lastName
+
'
</a> <br>
'
+
'
<b><i class="fas fa-star"></i> Keywords</b>:
'
+
item
.
item
.
keywords
.
join
(
'
,
'
)
+
'
<form action="iStoeckHM.html" class="form-signin" method="GET">
'
+
'
<button type="submit" class="btn btn-sm btn-outline-secondary">Explore</button>
'
+
'
</form>
'
+
'
<b><i class="fas fa-star"></i> Keywords</b>:
'
+
item
.
item
.
keywords
.
join
(
'
,
'
)
+
'
</br>
'
+
ExploreHTML
+
'
'
+
YouTubeHTML
+
'
</p>
'
+
'
</div>
'
+
'
</div>
'
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment