Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
zedflow
fgdi
Commits
b835314d
Commit
b835314d
authored
1 year ago
by
Traboulsi
Browse files
Options
Download
Email Patches
Plain Diff
Update public/js/add_content.js
parent
7b5ff765
Pipeline
#9034
passed with stage
in 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/js/add_content.js
+8
-2
public/js/add_content.js
with
8 additions
and
2 deletions
+8
-2
public/js/add_content.js
+
8
-
2
View file @
b835314d
...
@@ -77,8 +77,14 @@ function addcontent(item) {
...
@@ -77,8 +77,14 @@ function addcontent(item) {
var
sdgProjectHTML
=
''
var
sdgProjectHTML
=
''
if
(
'
sdgImage
'
in
item
.
links
)
{
if
(
'
sdgImage
'
in
item
.
links
)
{
var
sdgProjectLink
=
item
.
links
.
sdgImage
var
sdgProjectLink
=
item
.
links
.
sdgImage
;
sdgProjectHTML
=
`<a class="btn btn-sm btn-outline-info mt-1" href="
${
sdgProjectLink
}
" target="_blank"><img src="imgs/thumbnails/sdg.png" alt="SDG" width="20" height="20"> Sustainable Development Goals</a> `
;
var
titleLink
=
item
.
project
;
sdgProjectHTML
=
`<a class="btn btn-sm btn-outline-info mt-1"
href="
${
sdgProjectLink
}
"
target="_blank"
onclick="var popupWindow=window.open('', '_blank'); popupWindow.document.body.innerHTML='<div style=\'text-align: center;\'><h2>SDG</h2><img src=\'
${
sdgProjectLink
}
\' alt=\'SDG Project Image\' style=\'width: 100%; max-width: 400px; background-color: white;\'><p>
${
titleLink
}
</p></div>'; popupWindow.document.title='
${
titleLink
}
';">
<img src="imgs/thumbnails/sdg.png" alt="SDG" width="20" height="20"> Sustainable Development Goals
</a> `
;
}
}
/* var sdgProjectHTML = '';
/* var sdgProjectHTML = '';
if ('sdgImage' in item) {
if ('sdgImage' in item) {
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets