Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
zedflow
fgdi
Commits
2ad7eb6a
Commit
2ad7eb6a
authored
Dec 22, 2023
by
Traboulsi
Browse files
Update public/js/add_content.js
parent
bf20ef37
Pipeline
#8990
passed with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/js/add_content.js
View file @
2ad7eb6a
...
@@ -86,9 +86,9 @@ function addcontent(item) {
...
@@ -86,9 +86,9 @@ function addcontent(item) {
if
(
'
sdgImage
'
in
item
)
{
if
(
'
sdgImage
'
in
item
)
{
var
sdgProjectLink
=
item
.
sdgImage
;
var
sdgProjectLink
=
item
.
sdgImage
;
var
customColor
=
'
#8A2BE2
'
;
var
customColor
=
'
#8A2BE2
'
;
var
imageSize
=
'
5px
'
;
// Adjust this value to your desired size
//
var imageSize = '5px'; // Adjust this value to your desired size
sdgProjectHTML
=
`<a class="btn btn-sm btn-outline- mt-1" style="color:
${
customColor
}
; border-color:
${
customColor
}
;" href="javascript:void(0);" onclick="changeImage('
${
sdgProjectLink
}
')"><img src="imgs/thumbnails/SDG-HFT.png" alt="SDG Project Image" class="btn-outline-" style="max-width:
${
imageSize
}
; max-height:
${
imageSize
}
;"></a> `
;
sdgProjectHTML
=
`<a class="btn btn-sm btn-outline- mt-1" style="color:
${
customColor
}
; border-color:
${
customColor
}
;" href="javascript:void(0);" onclick="changeImage('
${
sdgProjectLink
}
')"><img src="imgs/thumbnails/SDG-HFT.png" alt="SDG Project Image" class="btn-outline-" style="max-width:
5px
; max-height:
10 px
;"></a> `
;
// Add a JavaScript function to change the image and open the link
// Add a JavaScript function to change the image and open the link
sdgProjectHTML
+=
`
sdgProjectHTML
+=
`
...
...
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